Answers for "how to add a list to dataframe in python"

0

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)
Posted by: Guest on September-01-2021

Code answers related to "how to add a list to dataframe in python"

Python Answers by Framework

Browse Popular Code Answers by Language