如何将每行包含字符串列表的多列转换为包含整数列表的行?
从这个状态
index column_1 column_2 column_3 column_4 column_5 column_6
0 ['1','1'] ['7','6'] ['1','3'] 7 2 ['5','1']
到这个状态
index column_1 column_2 column_3 column_4 column_5 column_6
0 [1,1] [7 , 6 ] [ 1 , 3 ] 7 2 [5 , 1]
我尝试了很多解决方案,唯一有效的解决方案是下面的解决方案,但仅针对单个列
df['column_1'].map(lambda a: map(int, a))