Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add a list to dataframe in python

to_append = [5, 6]
a_series = pd.Series(to_append, index = df.columns)
df = df.append(a_series, ignore_index=True)
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #add #list #dataframe #python
ADD COMMENT
Topic
Name
4+2 =