Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 1.67 KB

CSV_Read_file.md

File metadata and controls

44 lines (25 loc) · 1.67 KB



Template request | Bug report | Generate Data Product

Tags: #csv #pandas #read #opendata #johnshopkins #investors #snippet #dataframe

Author: Florent Ravenel

Description: This notebook provides a guide to reading and manipulating CSV files.

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