Рет қаралды 3,164
dataindependent.com/pandas/pa...
github.com/Data-Indepedent/pa...
Pandas Change Column names - Changing column names within pandas is easy. You only need to decide which method you want to use. Depending on your use case, you can pick the best one for you.
The easiest and most popular one will be done via the .rename() method. But look below for 2 other ways.
pandas.DataFrame.rename(columns={'old_column_name':'new_column_name'})