구글 코랩(Colab) 관련 정보 모음

1. 구글 드라이브에서 Colab 추가 방법
– 구글 드라이브 > 새로 만들기 > 더보기 > 연결할 앱 더보기 > 앱 검색 > Colaboratory

2. 구글 드라이브 연결

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

3. pandas 라이브러리로 구글 드라이브내 파일 읽기

import pandas as pd
df_csv = pd.read_csv('/content/drive/MyDrive/folder/file.csv')
df_xls = pd.read_excel('/content/drive/MyDrive/folder/file.xls')

4. 패키지 영구 설치 방법
https://seong6496.tistory.com/318

5. 트위터 크롤링 위한 정보

6. R 사용 방법

7. 반복문 처리 진행률 확인, tqdm

from tqdm.auto import tqdm, trange
from time import sleep

# 100건에 대한 진행률 표기
for i in tqdm(100, desc='progress'):
  sleep(0.01)

# 실제 데이터의 반복처리 건에 대한 진행률 표기
for i in trange(len(df)):
  sleep(0.01)

8. 특허 데이터 크롤링

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments