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: assignments/open_ended.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,18 @@ Expands on the [instructions to mount Google Drive locally](https://colab.resear
94
94
1. Click the `Mount Drive` icon (B).
95
95
- You may need to run the code it injects to authorize it (C).
96
96
- Think of this as attaching your Drive to your Google Colab instance, as if you were plugging in a USB flash drive.
97
-
1.[Read the file in Python.](#reading-files-in-python)
97
+
1. Read the file in Python (below).
98
+
99
+
### Reading files in Python
100
+
101
+
1. Navigate to the file (D).
102
+
- You may need to click into `content`, then `drive`.
103
+
1. Next to the filename, click the three dots.
104
+
1. Click `Copy path` (E).
105
+
- The value should be something like `/content/drive/My Drive/...`.
106
+
1. Use this path with [`read_csv()`](https://pandas.pydata.org/docs/user_guide/io.html#csv-text-files) (F).
107
+
108
+
Google Colab cannot access the file on your local machine; in other words, the path shouldn't start with `C:\\` or anything like that. [More info about file paths.](https://www.codecademy.com/resources/docs/general/file-paths)
- You may need to click into `content`, then `drive`.
117
-
1. Next to the filename, click the three dots.
118
-
1. Click `Copy path` (E).
119
-
- The value should be something like `/content/drive/My Drive/...`.
120
-
1. Use this path with [`read_csv()`](https://pandas.pydata.org/docs/user_guide/io.html#csv-text-files) (F).
121
-
122
-
Google Colab cannot access the file on your local machine; in other words, the path shouldn't start with `C:\\` or anything like that. [More info about file paths.](https://www.codecademy.com/resources/docs/general/file-paths)
123
-
124
124
## Reducing data size
125
125
126
126
You can make data smaller _before_ uploading by filtering it through:
0 commit comments