Pandas read_csv accepts a URL: Loading remote data files

Pandas read_csv accepts a URL: Loading remote data files

Want to turn an online CSV file into a Python Pandas data frame?

Just pass a URL to read_csv:

df = pd.read_csv('https://mydata.com/data.csv')

Options such as usecols and index_col work!

This works on all read_* methods, including read_excel, read_json, and read_parquet.