Python Forum
can't access data from URL in pandas/jupyter notebook
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can't access data from URL in pandas/jupyter notebook
#1
Thumbs Up 
Hi everyone

i'm new to python. I'm in training and i started using jupyter notebook on a project
I wanted to work with covid data. I took the raw data from John Hopskins Git hub via URLs
i got data for confirmed cases, deaths and recovered. Each set of data is on a different url
Everything works fine except recovered cases. apparently i can't access the data since in my code, it returns NaN
I don't get why...
Here are my screen shots
Feel free to ask me anything, i'll try my best to give you any detail needed

I know i'm not supposed to attach screenshot and rather copy/paste my code but i'm not sure the code is the problem here, since it works fine with the other files...
i've copied.pasted the URL again and again, thinking maybe the adress was incomplete but it doesn't seem to be faulty...


Thank you so much

Attached Files

Thumbnail(s)
           
Reply
#2
Have not played with that dataset. Is it possible the values are strings, ie "1012" rather than numbers? would look at the data first.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Grouping in pandas/multi-index data frame Aleqsie 3 607 Jan-06-2024, 03:55 PM
Last Post: deanhystad
  Jupyter notebooks, jupyter kernels, virtual environment created in Anaconda... bytecrunch 8 2,135 Nov-05-2023, 06:38 PM
Last Post: snippsat
  Jupyter Notebook TypeError Holidays entity loader class bmanning20 0 2,650 Jul-20-2023, 06:52 PM
Last Post: bmanning20
  Why does graph look different in Codecademy and Jupyter Notebook abc123456 1 1,452 Mar-29-2023, 09:22 AM
Last Post: newbieAuggie2019
Smile How to further boost the data read write speed using pandas tjk9501 1 1,230 Nov-14-2022, 01:46 PM
Last Post: jefsummers
  Setting up and integrating Jupyter Notebook development environment with VSC Drone4four 3 1,785 Sep-12-2022, 09:18 AM
Last Post: Drone4four
Exclamation Jupyter Notebook - Help Needed! eyadfr 1 1,809 Jan-26-2022, 06:42 PM
Last Post: jefsummers
  Help needed with Jupyter Notebook eyadfr 4 2,083 Jan-04-2022, 08:20 PM
Last Post: snippsat
Question Sorting data with pandas TheZaind 4 2,296 Nov-22-2021, 07:33 PM
Last Post: aserian
  Pandas Data frame column condition check based on length of the value aditi06 1 2,655 Jul-28-2021, 11:08 AM
Last Post: jefsummers

Forum Jump:

User Panel Messages

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