I have a dataframe with some columns like this:
A B C 0 4 5 6 7 7 6 5
The possible range of values in A are only from 0 to 7>
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)