Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 1.67 KB

google-drive-mount.md

File metadata and controls

63 lines (41 loc) · 1.67 KB

코랩에서 구글 드라이브 연결 방법

Colab에 연결해 새노트 파일 생성 후 다음 확인

pwd
ls

다음으로 구글 드라이브(MyDrive)와 Colab(/content/gdrive/MyDrive)을 마운트(연결)

from google.colab import drive
drive.mount('/content/gdrive')

연결된 상태 확인

image

  • 다음 아이콘으로도 바로 마운트 가능, 이 경우 /content/drive/MyDrive 로 자동 연결

image

구글 드라이브의 저장 폴더 생성 및 이동

pwd
cd gdrive/MyDrive
mkdir 2024-big-data
cd 2024-big-data

깃허브의 다음 저장소를 클론(복제)

!git clone https://github.com/EasysPublishing/do_it_pandas.git

저장소 복제 확인

image

복제된 노트북 파일 편집

  • 구글 드라이브에서 노트북 파일로 이동해 열기 image

노트북 파일에서 마운트된 이후에 데이터 파일 열기

  • 데이터 파일에서 '경로 복사' image

다음 체크

ls /content/gdrive/MyDrive/2024-big-data/do_it_pandas/data/gapminder.tsv

다음으로 코딩

image