Net-informations.com

Rename DataFrame columns/index names

You can simply rename DataFrame column names using DataFrame.rename() .

Lets create a DataFrame..

Rename DataFrame column using DataFrame.rename()


rename dataframe column

Rename DataFrame index using DataFrame.rename()

Reassign DataFrame column/index names using set_axis()

Changing DataFrame Index label using DataFrame.set_axis()


rename dataframe index labels









net-informations.com (C) 2022    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.
SiteMap  | Terms  | About