How to read CSV file from GitHub using pandas
问题 Im trying to read CSV file thats on github with Python using pandas> i have looked all over the web, and I tried some solution that I found on this website, but they do not work. What am I doing wrong? I have tried this: import pandas as pd url = 'https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes/blob/master/all/all.csv' df = pd.read_csv(url,index_col=0) #df = pd.read_csv(url) print(df.head(5)) 回答1: You should provide URL to raw content. Try using this: import pandas as pd url =