【发布时间】:2020-12-23 07:03:07
【问题描述】:
原始数据在列表中,我转换为数据框。不知道通过一个列表来重塑是否更容易,但是这里有一个示例列表供您尝试,原始列表真的很长。 ['review: I stayed around 11 days and enjoyed stay very much.', 'compound: 0.5106, ','neg: 0.0, ','neu: 0.708, ','pos: 0.292, ','review: Plans for weekend stay canceled due to Coronavirus shutdown.','compound: 0.0, ','neg: 0.0, ','neu: 1.0, ','pos: 0.0, ']
【问题讨论】:
标签: python pandas dataframe stack reshape