Lesson 19
In [ ]:
Problem: Converting Dates¶
- Load the CSV file without converting the dates in
read_csv
. - Convert the date column, remove it from the DataFrame, and set it as the index.
In [ ]:
In [ ]:
Exercise: Load and Merge multiple Sheets¶
- Load the data on the sheet "Long Mat" in the Excel file "data/exercise.xlsx". These are 10 and 20 year constant maturity yields.
- Load the data on the sheet "Short Mat" in the Excel file "data/exercise.xlsx". These are 1 and 3 year constant maturity yields.
- Combine the columns in the two
DataFrame
s by creating a dictionary of the keys in each with the values equal to the column names.
In [ ]: