Hello everyone,
I'm quite new to Spyder as I've only installed it very recently.
For some point in my tutorial for Data Science, I had the task of loading a table into pandas.
Here is the script I'm using so far:
import pandas as pd
from bs4 import BeautifulSoup
url = 'http://espn.go.com/nhl/statistics/player/_/stat/points/sort/points/year/2015/seasontype/2'
df = pd.read_html(url)
But I get the following error which ends in:
"BeautifulSoup4 (bs4) not found, please install it")
ImportError: BeautifulSoup4 (bs4) not found, please install it
But the thing is, the tutorial didn't a mention whether pandas is capable of getting a table from a website in this manner,
therefore Imight be completely wrong.
My configuration is built on Linux, where I'm using pip, and through it I've successfully installed spyder, numpy, scipy, pandas, bs4., html5lib, lxml.
The thing is, if I simply import and run the script with bs4 or pandas, I don't get any errors but when I'm trying to use read_html, I'm getting that error.
Not sure where the problem is in this case.
Best,
Florin