I want to extract some data based on date in an imported excel file in python. I want to be able to give the start date and end date and get the data for that specific period. I tried different ways to install pandas_datareader to use the following code, but I could not.
data = web.DataReader(dataset,start='', end='')
So, here is my code.
import pandas as pd
import datetime
data = pd.read_excel('file.xlsx')
start = datetime.datetime(2009,1,1)
end = datetime.datetime(2018,1,1)
#reshape based on date
set_index = data.set_index('date')
How can I fix this problem? :(