코딩/주피터
고급 주피터 노트북 기능(주피터 내에서 % 사용법)
https://antilibrary.org/2265?category=798169 고급 주피터 노트북 사용팁 Advanced Jupyter Notebooks Tutorial (Part 1) Shell Commands 느낌표(exclamation mark)로 시작되는 코드 셀 내의 라인은 셀 커맨드로 실행된다. 이는 데이터셋을 비롯한 파일을 다룰 때나 파이썬 패키지를 관리할 때 유용하다. 간단한 예를 보자. !ec antilibrary.org
[주피터] 주피터 zip 파일 업로드 후 폴더 푸는법
리눅스 가상환경을 만들어줬더니 터미널에서 일일히 코드 쳐서 파일 넣기가 귀찮다. 주피터의 폴더 업로드 기능을 사용해서 업로드를 해주소 shutil을 사용해서 해결했다. import os print(os.getcwd()) os의 getcwd()를 활용해 현재 내가 파일을 넣은 디렉토리 경로를 확인하고 import shutil filename = '/home/bigdata/work/catanddog.zip' extract_dir = '/home/bigdata/work/catanddog' archive_format = 'zip' shutil.unpack_archive(filename, extract_dir, archive_format) 주피터 업로드 기능으로 파일 업로드 후 파일 이름, 압축 해제 경로, 확장..
[주피터] tqdm 사용법
https://antilibrary.org/2269?category=798169 tqdm 을 사용하여 파이썬/판다 Progress Bars 만들기 Introducing tqdm tqdm 는 즉석에서 progress bar 를 생성해주고, 함수나 반복문의 TTC (Time To Completion) 를 예측하는 파이썬 패키지를 말한다. from tqdm import tqdm_notebook list = [] for x in tqdm_not.. antilibrary.org