I have a .csv file containing several columns of which one contains multiple values:
"column1";"column2";"column3";
some_string; 1 ; 1,2,3,4 ;
Now, I would like to import the file using pandas read_csv:
import pandas as pd
df = pd.read_csv('file.csv', sep=';')
This obviously leads to the issue that the multiple values get imported as a single string object. Is there any way I could import these values as a list or an array that I could even call a single value in that cell? That would be tremendously helpful!
Thank you in advance!
df.column3.str.split()