Save file
Tags: #csv #pandas #save #opendata #johnshopkins
Author: Florent Ravenel

Input

Import library

1
import pandas
Copied!

Variable

1
# Input
2
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"
3
4
# Output
5
csv_output_path = "data.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)
2
df
Copied!

Output

You want to add more parameters ? 👉 Check out the pandas documentation here.
1
df.to_csv(csv_output_path)
2
print(f'💾 Excel '{csv_output_path}' successfully saved in Naas.')
Copied!
Last modified 2mo ago
Copy link
Edit on GitHub