|
24 | 24 | "1. Start a jupyter lab instance (using the links at the top of this page) and open this lesson in an interactive mode.\n", |
25 | 25 | "2. Have a look at the input data which is a text file containing weather observations from Kumpula\n", |
26 | 26 | "\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", |
28 | 28 | " - 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", |
29 | 30 | " - The data file contains observed daily mean, minimum, and maximum temperatures from June 2016 recorded from the Kumpula weather observation station in Helsinki.\n", |
30 | 31 | " - 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", |
31 | 32 | " - There are something like 30 lines of data in the data file.\n", |
|
562 | 563 | }, |
563 | 564 | "outputs": [], |
564 | 565 | "source": [ |
565 | | - "# Create Pandas Series from the list\n", |
| 566 | + "# Create Pandas Series from a list\n", |
566 | 567 | "myList = [1, 2, 3, 4, 5, 6, 7.0]\n" |
567 | 568 | ] |
568 | 569 | }, |
|
575 | 576 | "source": [ |
576 | 577 | "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", |
577 | 578 | "\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):" |
579 | 580 | ] |
580 | 581 | }, |
581 | 582 | { |
|
0 commit comments