1. 타입 확인 : dtypes
2. 타입 변경 : astype('타입')
- 원하는 컬럼의 타입만 바꾸기 astype({'columns':'type'})
'Code Cloud > python' 카테고리의 다른 글
pandas 결측값 있는 행, 열 제거 : dropna(axis= ) (0) | 2021.12.28 |
---|---|
리스트 원소 추가/삭제 (0) | 2021.12.25 |
[pandas] 새로운 데이터 프레임 구성 df=[ [ '컬럼명1','컬럼명2'... ] ] (0) | 2021.12.21 |
[pandas] 추출한 데이터프레임의 인덱스 제거 reset_index(drop= ) (0) | 2021.12.21 |
[pandas] 특정 조건에 맞는 데이터 추출 df[df['컬럼명']==3] (0) | 2021.12.21 |