데이터 탑재 in colab

Hojun Jeong·2022년 5월 24일
0

Python

목록 보기
2/3
post-thumbnail

Colab을 사용할 때 데이터를 가져오는 방법은 다양합니다 그 방법들을 소개하고자 합니다

1. google drive에 직접 데이터를 넣고 코랩으로 가져오기

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

위의 코드는 colab, googledrive를 연결시키는 코드입니다

이후, 자신이 이용하고 있는 프레임워크를 통해 데이터를 읽으면 됩니다.

ex) pd.read_csv, torch.utils.data.DataLoader()
profile
Student , Junior Developer

0개의 댓글