<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Title
Step1:  Create example data
Step2:  Replace the header value with the first row's values
<ASSISTANT_TASK:>
Python Code:
# Import required modules
import pandas as pd
Explanation: Title: Rename Column Headers In Pandas
Slug: pandas_rename_column_headers
Summary: Rename Column Headers In Pandas
Date: 2016-06-17 12:00
Category: Python
Tags: Data Wrangling 
Authors: Chris Albon  
Originally from rgalbo on StackOverflow.
Preliminaries
End of explanation
# Create a values as dictionary of lists
raw_data = {'0': ['first_name', 'Molly', 'Tina', 'Jake', 'Amy'], 
        '1': ['last_name', 'Jacobson', 'Ali', 'Milner', 'Cooze'], 
        '2': ['age', 52, 36, 24, 73], 
        '3': ['preTestScore', 24, 31, 2, 3]}
# Create a dataframe
df = pd.DataFrame(raw_data)
# View a dataframe
df
Explanation: Create example data
End of explanation
# Create a new variable called 'header' from the first row of the dataset
header = df.iloc[0]
# Replace the dataframe with a new one which does not contain the first row
df = df[1:]
# Rename the dataframe's column values with the header variable
df.rename(columns = header)
Explanation: Replace the header value with the first row's values
End of explanation
<END_TASK>