How to do it...

  1. Navigate to The American Presidency Project approval page for President Donald Trump (http://www.presidency.ucsb.edu/data/popularity.php?pres=45). You should get a page that contains a time series plot with the data in a table directly following it:
  1. The read_html function is able to scrape tables off web pages and place their data into DataFrames. It works best with simple HTML tables and provides some useful parameters to select the exact table you desire in case there happen to be multiple tables on the same page. Let's go ahead and use read_html with its default values, which will return all the tables as DataFrames in ...

Get Numerical Computing with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.