Columns must be same length as key

Anonymous
python
01/05/2022 4:21 AM
600 B
1,205
Indexable
print(df.First.str.split(expand=True))  # gives me the following

                 0          1     2
Area Code
8074          John       None  None
9119          Jack       None  None
8075          John        "Da  Man"
91234      Stephen       None  None
298            NaN        NaN   NaN
123           Joan  "Danger",  Anne


# i want to keep only column 0, the instructor says to use

df.First = df.First.str.split(expand=True)

Editor is loading...