Jak przesuwać kolumny w danych danych w Pythonie
df = df[['column1', 'column2','column3']]
Bewildered Barracuda
df = df[['column1', 'column2','column3']]
df = df.reindex(columns=column_names)
column_to_move = df.pop("name")
# insert column with insert(location, column_name, column_value)
df.insert(len(df.columns), "name", column_to_move)