dtypes 데이터프레임에 각 칼럼들의 데이터 형태를 조회 df.dtypes 출처 : https://pbpython.com/pandas_dtypes.html pd.to_datetime 문자열 정보를 날짜 형태로 변경 raw_data['Mycol'] = pd.to_datetime(raw_data['Mycol'], format='%d%b%Y:%H:%M:%S.%f') 또는 df[["col1", "col2", "col3"]] = df[["col1", "col2", "col3"]].apply(pd.to_datetime) 출처 : https://stackoverflow.com/questions/26763344/convert-pandas-column-to-datetime rename(columns={'A':'B'})..
skiprows 원하는 행부터 불러올 때. 아래 예제는 5줄까지 무시하고 다음 행부터 불러옴 pd.read_csv('../input/sample_submission.csv',skiprows=5,nrows=10) 출처 : https://stackoverflow.com/questions/47917943/how-to-select-several-rows-when-reading-a-csv-file-using-pandas names 불러올 때 칼럼 이름을 지정한 이름으로 변경 d = pd.read_csv('test.csv', header=0, names=['NEW1', 'NEW2', 'NEW3'], usecols=['NEW2', 'NEW3']) 출처 : https://stackoverflow.com/question..
- Total
- Today
- Yesterday
- 현실
- 일자리구하기
- 변화
- 회계공부
- 혁신
- 행복
- 물과꿈
- 사랑
- 마인드맵
- 투자
- 문제
- 목표
- 방법
- 완독
- 최고의질문
- 시작
- 감정
- 원칙
- 지능이란 무엇인가
- 인간은 어떻게 배우는가
- 집중
- 정리
- 관종의조건
- 자신감
- 오류
- 왜일하는가
- 경험
- 질문
- 이해찬 회고록
- 바슐라르
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |