Как добавить строку в DataFrame в Python
df = df.append({'a':1, 'b':2}, ignore_index=True)
alberduris
df = df.append({'a':1, 'b':2}, ignore_index=True)
library(tidyverse)
df %>% add_row(hello = "hola", goodbye = "ciao")
df[nrow(df) + 1,] = c("v1","v2")
# Add a new row at index k with values provided in list
dfObj.loc['k'] = ['Smriti', 26, 'Bangalore', 'India']