반응형
목록 pandas 데이터프레임 (1)
KEEP GOING

import pandas as pd # {컬럼명A : [컬럼값1, .. 컬럼값N], .. , 컬럼명B : [컬럼값1, .. 컬럼값N]} customerCW = { # 컬럼명 : 컬럼값 'NAME': ['홍수지', '하동훈', '김지영', '최미희'], 'ID': ['012', '013', '014', '015'], 'AGE': [24, 32, 50, 19], 'BALANCE': [12000000, 240000000, 420000000, 5000000], 'GRADE': [3, 2, 1, 4] } # index 지정하지 않는 경우, default index number = 행번호 df = pd.DataFrame( customerCW ) # index 번호를 로마 숫자로 지정 df = pd.DataFrame..
python/pandas
2022. 1. 17. 15:47