df[new_column] = the_list
Create a list containing new column data
Insert the data into the DataFrame using DataFrame. assign(column_name = data) method.
It returns a new data frame.
df[new_column] = the_list
Create a list containing new column data
Insert the data into the DataFrame using DataFrame. assign(column_name = data) method.
It returns a new data frame.