Get HTML table into pandas Dataframe, not list of dataframe objects
<p>I apologize if this question has been answered elsewhere but I have been unsuccessful in finding a satisfactory answer here or elsewhere.</p>

<p>I am somewhat new to python and pandas and having some difficulty getting HTML data into a pandas dataframe. In the pandas documentation it says .read_html() returns a list of dataframe objects, so when I try to do some data manipulation to get rid of the some samples I get an error.</p>

<p>Here is my code to read the HTML:</p>

<pre><code>df = pd.read_html('http://espn.go.com/nhl/statistics/player/_/stat/points/sort/points/year/2015/seasontype/2', header = 1)
</code></pre>

<p>Then I try to clean it up:</p>

<pre><code>df = df.dropna(axis=0, thresh=4)
</code></pre>

<p>And I received the following error:</p>

<pre><code>Traceback (most recent call last): File "module4.py", line 25, in
&lt;module&gt; df = df.dropna(axis=0, thresh=4) AttributeError: 'list'
object has no attribute 'dropna'
</code></pre>

<p>How do I get this data into an actual dataframe, similar to what .read_csv() does?</p>