Skip to content

Commit

Permalink
adding minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rifqij committed Oct 3, 2022
1 parent 76fbb3d commit 8e01d51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions CSV/CSV_Read_file.ipynb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"cells": [
{
"cell_type": "markdown",
Expand Down Expand Up @@ -122,7 +122,7 @@
},
"outputs": [],
"source": [
"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\""
"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\"" #path to csv file directory
]
},
{
Expand Down Expand Up @@ -176,7 +176,7 @@
},
"outputs": [],
"source": [
"df = pandas.read_csv(csv_path)"
"df = pandas.read_csv(csv_path)" #store csv to a dataframe
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions CSV/CSV_Save_file.ipynb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"cells": [
{
"cell_type": "markdown",
Expand Down Expand Up @@ -180,8 +180,8 @@
},
"outputs": [],
"source": [
"df = pandas.read_csv(csv_path)\n",
"df"
"df = pandas.read_csv(csv_path) #store csv to a dataframe\n",
"df" #read the stored dataframe
]
},
{
Expand Down Expand Up @@ -224,7 +224,7 @@
},
"outputs": [],
"source": [
"df.to_csv(csv_output_path)\n",
"df.to_csv(csv_output_path) #convert dataframe to csv\n",
"print(f'💾 Excel '{csv_output_path}' successfully saved in Naas.')"
]
}
Expand Down

0 comments on commit 8e01d51

Please sign in to comment.