May-05-2022, 01:35 PM
This works to add a list a as a new (last) row of a dataframe df:
Thanks!
df.loc[len(df.index)] = alen(df.index) is an integer, right? I'm confused about why this works because I thought unlike .iloc[] that takes integer locations (but is unable to expand the size of a dataframe), .loc[] takes labels.
Thanks!