Pandas -Spalten fügen Präfix hinzu
df = df.add_prefix("prefix_")
df = df.add_suffix('_suffix')
D Goglia
df = df.add_prefix("prefix_")
df = df.add_suffix('_suffix')
df.columns = ['f_' + i if ix < 15 else i for ix, i in enumerate(df.columns)]
s.add_prefix('item_')
item_0 1
item_1 2
item_2 3
item_3 4
dtype: int64