# Import modules
import pandas as pd

# Set ipython's max row display
pd.set_option('display.max_row', 1000)

# Set iPython's max column width to 50
pd.set_option('display.max_columns', 50)

"""
Explanation: Title: Rename Multiple Pandas Dataframe Column Names At Once
Slug: pandas_rename_multiple_columns
Summary: Rename Multiple Pandas Dataframe Column Names At Once
Date: 2016-05-01 12:00
Category: Python
Tags: Data Wrangling
Authors: Chris Albon  
Preliminaries
End of explanation
"""


# Create an example dataframe
data = {'Commander': ['Jason', 'Molly', 'Tina', 'Jake', 'Amy'], 
        'Date': ['2012, 02, 08', '2012, 02, 08', '2012, 02, 08', '2012, 02, 08', '2012, 02, 08'], 
        'Score': [4, 24, 31, 2, 3]}
df = pd.DataFrame(data, index = ['Cochice', 'Pima', 'Santa Cruz', 'Maricopa', 'Yuma'])
df

"""
Explanation: Create an example dataframe
End of explanation
"""


df.columns = ['Leader', 'Time', 'Score']

df

df.rename(columns={'Leader': 'Commander'}, inplace=True)

df

"""
Explanation: Rename Column Names
End of explanation
"""


