How can I retrieve a csv file directly from a url with pandas without having my data connection on
I have a link to a csv file inside a pdf. I'm trying to read the csv file directly from the web via pandas #i used the code below import pandas as pd data1=pd.read_csv('https://sthsthsth... sth.csv') data1 #But I keep getting a URL Error. So after sourcing the net. I found out some lines of code that was very useful and it actually retrieves the csv file directly to my console import pandas as pd from io import StringIO import requests url="https://sthsth... sth.csv" s=requests.get(url).content c=pd.read_csv(StringIO(s.decode('utf-08'))) c #But I have a challenge, the lines of code above only works when my PC is connected to a network QUESTION: Is there anyway I can achieve the same result without not having my pc connected to d net? Thanks I'll be really indebted in anyway anyone can provide an assistance David Nierman Farihađ[inactive] Lothar Akintunde Taofeek Aad Hoogenboom Alaqmar #ForTheLoveOfPython https://code.sololearn.com/cJ3o4K8scOvL/?ref=app