Intro and Getting Stock Price Data - Python Programming for Finance p.1
Why Stack Overflow recommends it
Stack Overflow users link it when they hit errors, such as socket, SSL or missing-module problems, while following its pandas-datareader code to fetch stock data.
Recommended by 0 people across 0 different months, 2017 to 2019.
What it is
The first video in sentdex's Python for Finance series. It walks through installing pandas and pandas-datareader and pulling TSLA stock price data from Yahoo into a DataFrame, with matplotlib styling. The series continues into data manipulation, machine learning and back-testing.
What people said
Cites sm31204 · 2017-07 · Stack Overflow · on “Error opening python socket for panda-datareader and Yahoo finance API”
So I'm new here folks and have hit the wall off the bat. I was following along with lesson 2 of "Intro and Getting Stock Price Data - Python Programming for Finance" by sentdex on YouTube " [this video] ". I've installed pandas and pandas-datareader current versions successfully. My code compiles but crashes when trying to open connection it appears. Can anyone advise? import datetime as dt import matplotlib.pyplot as plt from matplotlib import style import pandas as pd 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()) The errors I see are (of course followed by oth
Cites Oscar Bomboscar · 2018-03 · Stack Overflow · on “No module named pandas_datareader - error”
I am trying to gain some more experience when it comes to Python with finance and I would like your help please. I am currently going through a Youtube series, and in the first 2 minutes it says to download and install certain programs, one of these is pandas-datareader. The link for the video is below. [this video] Currently I am stuck at 7:14 Every time I hit F5 to run the program, it gives me this message. ModuleNotFoundError: No module named ' pandas_datareader ' Does anyone know how I can fix this error. Thank you :)
Cites KiranAatkar · 2019-06 · Stack Overflow · on “How do I get around a GeneralName TypeError?”
I am trying to get into writing code to scrape stock web pages, I came across this youtube video [this video] . When I copy and paste the following code (from the video) import datetime as dt import matplotlib.pyplot as plt from matplotlib import style import pandas as pd import pandas_datareader.data as web style.use("ggplot") start = dt.datetime(2015, 1, 1) end = dt.datetime.now() df = web.DataReader("TSLA", "yahoo", start, end) print(df.head()) I still get the same error (Full traceback is too long to add here) but the last few lines say: File "/anaconda3/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 363, in getpeercert 'subjectAltName': get_subj_alt_name(x509) File "/anacond