数据列中有字符串的列表数据,需要转换成真正的列表 使用ast模块对需要数据转换的列进行转换 import ast df['eval_column']=df.column.apply(ast.literal_eval)