TypeError: first argument must be an iterable of pandas objects, you passed an object of type “DataF
使用concat()函数拼接两个表格,出现以下错误:TypeError: first argument must be an iterable of pandas objects, you passed an object of type "DataFrame"解决方法:最后一行必须采用以下格式:df=pd.concat([df1,df2,df3,df4,...], ignore_index=Tr
·
使用concat()函数拼接两个表格,出现以下错误:
TypeError: first argument must be an iterable of pandas objects, you passed an object of type "DataFrame"
解决方法:
最后一行必须采用以下格式:
df=pd.concat([df1,df2,df3,df4,...], ignore_index=True)
问题得以解决。
更多推荐

所有评论(0)