How to get DATE column from dataframe in pandas without using CSV
You need to reset index using df.reset_index().This will make your Dates attribute/column and not an index as it is now.
import pandas as pd
import pandas_datareader.data as web
import datetime as dt

start = dt.datetime(2019, 2, 1)
end = dt.datetime.today().strftime('%Y-%m-%d')
slug = &quot;tsla&quot;
df = web.DataReader(slug, 'yahoo', start, end)
modified = df.reset_index()
print(modified['Date'])