Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Appending rows to a DataFrame

s2 = pd.Series(["X0", "X1", "X2", "X3"], index=["A", "B", "C", "D"])

In [32]: result = pd.concat([df1, s2.to_frame().T], ignore_index=True)
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #Appending #rows #DataFrame
ADD COMMENT
Topic
Name
7+6 =