Skip to content

Commit b461a01

Browse files
committed
add Yamil's drive > colab code snippet
1 parent 1f15463 commit b461a01

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mtg_notes.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ A very basic intro to Python for librarians who have little to no experience wit
2929
+ Talked about copy /pasting parts of your Python error messages right into Google to help you figure out what is wrong
3030
+ and how https://stackoverflow.com/ is a common place to look for error advice
3131
+ Google Colab actually offers to send you to StackOverflow when you get an error on code running in Colab
32+
+ @Yamil Suárez shared a code snippet demonstrating how to read a file stored in a Google Drive into Google Colab:
33+
```python
34+
from google.colab import drive
35+
drive.mount('/content/drive')
36+
37+
import pandas as pd
38+
39+
df = pd.read_csv('/content/drive/My Drive/Colab Notebooks/data.tsv', sep='\t')
40+
```
41+
42+
3243

3344
### March 21, 2023
3445
+ Talked about this group’s [new repository](https://github.com/code4lib/python4lib-resources), and that we want to encourage others to contribute changes via PRs (or reach out to the group)

0 commit comments

Comments
 (0)