我正在处理此循环:
for elem in dfList:
flatlist=[]
for item in elem:
flatlist.append(item)
df = pd.DataFrame([flatlist], columns = ['Target', 'Position', 'Residue', 'Kinase'])
print(type(df))
并检索:
<class 'pandas.core.frame.DataFrame'>
<class 'pandas.core.frame.DataFrame'>
<class 'pandas.core.frame.DataFrame'>
<class 'pandas.core.frame.DataFrame'>
<class 'pandas.core.frame.DataFrame'>
<class 'pandas.core.frame.DataFrame'>
<class 'pandas.core.frame.DataFrame'>
<class 'pandas.core.frame.DataFrame'>
<class 'pandas.core.frame.DataFrame'>
<class 'pandas.core.frame.DataFrame'>
如何不使用dplyr软件包将所有框架合并到一个表中。我使用的是Python 2.7。
谢谢!