Thanks Larz60+, snippsat & buran for your help.
I'm using Anaconda & have found that I have installed pandas & matplotlib.
While practising, with the below code, I found that I have also been able to import them to use.
I do however, get an error about pandas_datareader.
I'm using Python 3.7, is pandas_datareader correct as a library to import??
ModuleNotFoundError: No module named 'pandas_datareader'
I'm using Anaconda & have found that I have installed pandas & matplotlib.
While practising, with the below code, I found that I have also been able to import them to use.
I do however, get an error about pandas_datareader.
I'm using Python 3.7, is pandas_datareader correct as a library to import??
ModuleNotFoundError: No module named 'pandas_datareader'
import datetime as dt import matplotlib.pyplot as plt # shows yellow triangle "Imported but unused" from matplotlib import style import pandas as pd # shows yellow triangle "Imported but unused" import pandas_datareader.data as web style.use('ggplot') start = dt.datetime(2000,1,1) end = dt.datetime(2016,12,31) df = web.DataReader('TSLA', 'yahoo', start, end) print(df.head(4))