python#4 sys, 파일 불러오기

Clay Ryu's sound lab·2022년 3월 30일
0

Framework

목록 보기
8/48

CSV파일 불러오기

pandas 사용하기

path에 데이터를 넣은 폴더의 경로를 추가해준다.

import sys
sys.path.append(".\yelp_restaurant")
# sys.path.append(".\yelp_restaurant")
# 둘 다 불러와진다. 차이가 뭐지?
print(sys.path)
# 경로가 추가 된다.
# ... './yelp_restaurant'
import pandas as pd
pd.read_csv("yelp_restaurant/raw_train.csv")
profile
chords & code // harmony with structure

0개의 댓글