Am using the following and it works, but only when i provide wide date range for around 10 days.
# Import yfinance
import yfinance as yf
import matplotlib.pyplot as plt
# Get the data for the stock Apple by specifying the stock ticker, start date, and end date
data = yf.download('AAPL','2019-01-01','2019-01-10', interval='1h')
data.Close.plot(figsize=(10, 5))
plt.show()
I want to see zoomed graph showing hourly ups and downs. It comes out as following.