python pd.dataframe中的panda数据帧问题({';Dokuman';:docs,';Sinif';:classes})

python pd.dataframe中的panda数据帧问题({';Dokuman';:docs,';Sinif';:classes}),python,pandas,dataframe,Python,Pandas,Dataframe,我想创建一个二维标记数据帧。但我每次都 得到一个不同的错误 我使用的数据如图所示。sql server查询输出 我在下面写的代码 docs = json.loads(docs) classes = ['internet', 'arıza', 'kesinti', 'fatura', 'fatura', 'telefon', 'spor', 'ekonomi'] #df_docs = pd.DataFrame({'Dokuman': docs, 'Sinif': cl

我想创建一个二维标记数据帧。但我每次都 得到一个不同的错误

我使用的数据如图所示。sql server查询输出

我在下面写的代码

docs = json.loads(docs)
classes = ['internet', 'arıza', 'kesinti', 'fatura', 'fatura', 
            'telefon', 'spor', 'ekonomi']

#df_docs = pd.DataFrame({'Dokuman': docs, 'Sinif': classes})
#df_docs= pd.Series([docs, classes], index=['Dokuman','Sinif'])
#df_docs = pd.DataFrame.from_dict(docs)
#df_docs = pd.DataFrame({'Dokuman': docs, 'Sinif': classes})
如何在此处设置数据框

df_docs = pd.DataFrame({'Dokuman': docs, 'Sinif': classes})
使用此代码时出现错误

单据中的记录数不等于 记录在类中,因此我得到了错误

问题已得到改善

单据中的记录数不等于 记录在类中,因此我得到了错误

问题已得到改善