I am not able to get this date column which is visible in the below given image.
I want to store this date in another dataframe
I have tried this:
sbin['Date']
but its not working
complete code:
from datetime import date
import datetime
from nsepy import get_history
import pandas as pd
enddate = datetime.datetime.today()
startdate = enddate - datetime.timedelta(10)
sbin = get_history(symbol='SBIN',
start=startdate,
end=enddate)
print(type(sbin))
sbin