Links

Read file

Tags: #csv #pandas #read #opendata #johnshopkins #investors #snippet #dataframe
Author: Florent Ravenel

Input

Import library

import pandas

Variable

csv_path = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv"

Model

Read the CSV from path

You want to add more parameters ? 👉 Check out the pandas documentation here.
df = pandas.read_csv(csv_path)

Output

Display result

df.head(5) #read the first 5 lines
Last modified 1mo ago