From the course: Python Data Analysis

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Loading station and temperature data

Loading station and temperature data - Python Tutorial

From the course: Python Data Analysis

Start my 1-month free trial

Loading station and temperature data

- [Instructor] In this chapter, we download several data files from the web. However, all the files that we analyze are also included in your exercise files, in case they became unavailable online, or you're unable to download them for any other reason. And before we load the data itself, it's also a good idea to start by looking at it's documentation. Browsing through the file listing at the NOAA website, we see a README file, and we start there. Instead of clicking on that link in our browser, let's use Python to download the file. There are several Python modules we could use, but for a simple download, the standard library module, urllib, is quite appropriate. urllib.request.urlretrieve needs the URL and the name of a local file. It's done already. We can use the Jupyter Notebook to look at the README file, by clicking on it. We see that it describes the contents of the directory, the format of DLY data files,…

Contents