SyntaxFix
Write A Post
Hire A Developer
Questions
Just assign the list directly:
df['new_col'] = mylist
Alternative Convert the list to a series or array and then assign:
se = pd.Series(mylist) df['new_col'] = se.values
or
df['new_col'] = np.array(mylist)