Skip to content

Commit 5089c9d

Browse files
committed
reorganize Colab file info
1 parent 28441c4 commit 5089c9d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

assignments/open_ended.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,18 @@ Expands on the [instructions to mount Google Drive locally](https://colab.resear
9494
1. Click the `Mount Drive` icon (B).
9595
- You may need to run the code it injects to authorize it (C).
9696
- 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)
98109

99110
### [InteractiveSheet](https://colab.research.google.com/notebooks/io.ipynb#scrollTo=BC_eQdDHyCji)
100111

@@ -110,17 +121,6 @@ df = sheet.as_df()
110121

111122
<iframe src="https://www.youtube-nocookie.com/embed/D5MUsMim_is?start=242" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen style="aspect-ratio: 16 / 9;"></iframe>
112123

113-
### Reading files in Python
114-
115-
1. Navigate to the file (D).
116-
- 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-
124124
## Reducing data size
125125

126126
You can make data smaller _before_ uploading by filtering it through:

0 commit comments

Comments
 (0)