Read file
Tags: #csv #pandas #read #opendata #johnshopkins
Author: Florent Ravenel

Input

Import library

1
import pandas
Copied!

Variable

1
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"
Copied!

Model

Read the CSV from path

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

Output

Display result

1
df.head(5) #read the first 5 lines
Copied!
Last modified 2mo ago
Copy link
Edit on GitHub