You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/reading.md
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,29 +40,30 @@ tied well before going for a run so that you don’t trip later on!
40
40
## Chapter learning objectives
41
41
By the end of the chapter, readers will be able to do the following:
42
42
43
-
- Define the following:
43
+
- Define the types of path and use them to locate files:
44
44
- absolute file path
45
45
- relative file path
46
-
-**U**niform **R**esource **L**ocator (URL)
47
-
- Read data into Python using an absolute path, relative path and a URL.
48
-
- Compare and contrast the following functions:
46
+
- Uniform Resource Locator (URL)
47
+
- Read data into Python from various types of path using:
49
48
-`read_csv`
50
49
-`read_excel`
51
-
- Match the following `pandas``read_csv` function arguments to their descriptions:
52
-
-`filepath_or_buffer`
50
+
- Compare and contrast `read_csv` and `read_excel`.
51
+
- Describe when to use the following `read_csv` function arguments:
52
+
-`skiprows`
53
53
-`sep`
54
+
-`header`
54
55
-`names`
55
-
-`skiprows`
56
56
- Choose the appropriate `read_csv` function arguments to load a given plain text tabular data set into Python.
57
57
- Use the `rename` function to rename columns in a data frame.
58
58
- Use `pandas` package's `read_excel` function and arguments to load a sheet from an excel file into Python.
59
-
- Connect to a database using the `ibis` library's `connect` function.
60
-
- List the tables in a database using the `ibis` library's `list_tables` function.
61
-
- Create a reference to a database table using the `ibis` library's `table` function.
62
-
- Execute queries to bring data from a database into Python using the `ibis` library's `execute` function.
59
+
- Work with databases using functions from the `ibis` package:
60
+
- Connect to a database with `connect.
61
+
- List tables in the database with `list_tables`.
62
+
- Create a reference to a database table with `table`.
63
+
- Bring data from a database into Python with `execute`.
63
64
- Use `to_csv` to save a data frame to a `.csv` file.
64
-
- (*Optional*) Obtain data using **a**pplication **p**rogramming **i**nterfaces (APIs) and web scraping.
65
-
- Read/scrape data from an internet URL using the `BeautifulSoup` package.
65
+
- (*Optional*) Obtain data from the web using scraping and application programming interfaces (APIs):
66
+
- Read HTML source code from a URL using the `BeautifulSoup` package.
66
67
- Read data from the NASA "Astronomy Picture of the Day" using the `requests` package.
67
68
- Compare downloading tabular data from a plain text file (e.g., `.csv`), accessing data from an API, and scraping the HTML source code from a website.
0 commit comments