<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 Date And Time Data
Step2:  Show Days Of The Week
<ASSISTANT_TASK:>
Python Code:
# Load library
import pandas as pd
Explanation: Title: Encode Days Of The Week
Slug: encode_days_of_the_week
Summary: How to the days of the week for dates and times for machine learning in Python.   
Date: 2017-09-11 12:00
Category: Machine Learning
Tags: Preprocessing Dates And Times  
Authors: Chris Albon
Preliminaries
End of explanation
# Create dates
dates = pd.Series(pd.date_range('2/2/2002', periods=3, freq='M'))
# View data
dates
Explanation: Create Date And Time Data
End of explanation
# Show days of the week
dates.dt.weekday_name
Explanation: Show Days Of The Week
End of explanation
<END_TASK>