Python报错ValueError: arrays must all be same length

 

 

import pandas as pd
dd = {
'c1':[],
'c2':[]
}
df = pd.DataFrame(dict([(k, pd.Series(v)) for k, v in dd.items()]))

 

posted @ 2020-08-27 15:27  沉迷编程的程序员  阅读(612)  评论(0编辑  收藏  举报