How to Add Rows to a Pandas DataFrame (With Examples)
https://www.statology.org/pandas-add-row-to-dataframe10.06.2021 · import pandas as pd #create DataFrame df = pd. DataFrame ({' points ': [10, 12, 12, 14, 13, 18], ' rebounds ': [7, 7, 8, 13, 7, 4], ' assists ': [11, 8, 10, 6, 6, 5]}) #view DataFrame df points rebounds assists 0 10 7 11 1 12 7 8 2 12 8 10 3 14 13 6 4 13 7 6 5 18 4 5 #add new row to end of DataFrame df. loc [len (df. index)] = [20, 7, 5] #view updated DataFrame df points rebounds …