From the course: Python Data Analysis (2020)
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Loading station and temperature data - Python Tutorial
From the course: Python Data Analysis (2020)
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,…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.