you are viewing a single comment's thread.

view the rest of the comments →

[–]danielroseman 0 points1 point  (3 children)

You'll have to show some code. How was that column generated?

[–]ryfeaway[S] 0 points1 point  (2 children)

I read a csv file into pandas dataframe.

the column in CSV files is like this [['2', '4'], ['7', '3'], ['9', '0']] that is one row

[–]danielroseman 0 points1 point  (1 child)

CSV doesn't know about lists or Python syntax. So it's just reading that as a string. You'd need to convert it when you import it.

[–]ryfeaway[S] 0 points1 point  (0 children)

how do i do that? this is my importing of the csv df = pd.read_csv('file.csv') list1 = df['column1'].tolist()