Python Forum
can't access data from URL in pandas/jupyter notebook - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: can't access data from URL in pandas/jupyter notebook (/thread-36333.html)



can't access data from URL in pandas/jupyter notebook - aaanoushka - Feb-08-2022

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


RE: can't access data from URL in pandas/jupyter notebook - jefsummers - Feb-13-2022

Have not played with that dataset. Is it possible the values are strings, ie "1012" rather than numbers? would look at the data first.