Skip to content

Commit f121991

Browse files
committed
fixed tiny formatting issues in lesson 5 pandas notebooks
1 parent b176297 commit f121991

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

notebooks/L5/Pandas/Exploring-data-using-pandas.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
"1. Start a jupyter lab instance (using the links at the top of this page) and open this lesson in an interactive mode.\n",
2525
"2. Have a look at the input data which is a text file containing weather observations from Kumpula\n",
2626
"\n",
27-
" - The data file name is [Kumpula-June-2016-w-metadata.txt](Kumpula-June-2016-w-metadata.txt)\n",
27+
" - The data file name is `Kumpula-June-2016-w-metadata.txt`\n",
2828
" - The file is available in the binder and CSC notebook instances, under L5 folder \n",
29+
" - or, you can download the file from [here](https://github.com/geo-python/notebooks/blob/master/notebooks/L5/Kumpula-June-2016-w-metadata.txt)\n",
2930
" - The data file contains observed daily mean, minimum, and maximum temperatures from June 2016 recorded from the Kumpula weather observation station in Helsinki.\n",
3031
" - The data has been derived from a data file of daily temperature measurments downloaded from the [US National Oceanographic and Atmospheric Administration's National Centers for Environmental Information climate database](https://www.ncdc.noaa.gov/cdo-web/).\n",
3132
" - There are something like 30 lines of data in the data file.\n",
@@ -562,7 +563,7 @@
562563
},
563564
"outputs": [],
564565
"source": [
565-
"# Create Pandas Series from the list\n",
566+
"# Create Pandas Series from a list\n",
566567
"myList = [1, 2, 3, 4, 5, 6, 7.0]\n"
567568
]
568569
},
@@ -575,7 +576,7 @@
575576
"source": [
576577
"As you can see, ``myList`` is converted to a Pandas Series using the ``ps.Series()`` function. Also, note that Pandas is smart about the conversion, detecting a single floating point value (``7.0``) and assigning all values in the Series the data type float64.\n",
577578
"\n",
578-
"In turn, we could convert this series back into a pandas dataframe by calling the [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.html) -function:"
579+
"In turn, we could convert this series back into a pandas dataframe by initiating a new [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.html):"
579580
]
580581
},
581582
{

notebooks/L5/Pandas/processing-data-with-pandas.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@
654654
},
655655
"outputs": [],
656656
"source": [
657-
"# Number of unique values\n"
657+
"# unique values as list\n"
658658
]
659659
},
660660
{
@@ -676,7 +676,9 @@
676676
"editable": true
677677
},
678678
"outputs": [],
679-
"source": []
679+
"source": [
680+
"# Number of unique values"
681+
]
680682
},
681683
{
682684
"cell_type": "markdown",

0 commit comments

Comments
 (0)