Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
paths
#11
note that you never run fetch_housing_data() if it is expected to pull data and create the file
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#12
The url call is supposed to pull from the internet a data folder and save it to that folder and call it housing.csv. So perhaps the issue lies with the pulling from the internet part
Reply
#13
well, as I said, you never call it
so you need
fetch_housing_data()
housing = load_housing_data()
housing.head()
this way you will call the function and we will see if it works as expected and create the file
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#14
Thanks that worked. I was coping code directly from a text book which said it should work.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Retrieving last 20 file paths from directory dyerlee91 3 1,968 Sep-24-2021, 12:55 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020