import pandas as pd
import warnings
import os
warnings.simplefilter("ignore")
fileDir = "C:/Users/SEEYA/Desktop/Data/구급일지/" # 파일경로+ 폴더명
fileNm = "AAA.csv" # 파일 이름
data = pd.read_csv(fileDir + fileNm, encoding='CP949')
selectdata = pd.DataFrame(data, columns = ['재난번호','구급보고서번호']) #조회할 컬럼 지정해서 출력하고 싶을 때
print(selectdata)
'Back-end Skill > Python' 카테고리의 다른 글
Python Pandas 설치 및 import 방법 (0) | 2022.07.10 |
---|---|
MIT open tutorials lec. data types, operators, variables (0) | 2022.01.24 |
Python Request 라이브러리 방법_#1 (0) | 2021.10.09 |