Combine Group and Sort
General Info
Useful Snippets

11.0.3 Append a new row to a DataFrame with a pd.Series

Example:

# create pd.Series, and specify the column names with index
new_row_from_series = pd.Series([99, 'x', 'government'], index = ['A', 'B', 'C'])

# use .append() to add the row to your DF
DF.append(new_row_from_series, ignore_index=True)