Skip to content
Advertisement

Web Scraping/Transforming data into tabular data in Python

Objective: I am trying to pull data from the Detailed forecast section on this weather forecast website. Then I am trying to put that data in a tabular data frame using pandas

Question: I get an error in the last line – could I get some advice, please?

This is my code thus far:

JavaScript

Advertisement

Answer

JavaScript

Output:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement