반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- math
- GIT
- matplotlib
- PANDAS
- google apps script
- list
- Java
- dataframe
- numpy
- gas
- Github
- 파이썬
- Excel
- array
- PySpark
- hive
- Python
- Kotlin
- Apache
- Google Excel
- PostgreSQL
- django
- Tkinter
- Google Spreadsheet
- Redshift
- string
- c#
- Mac
- SQL
Archives
- Today
- Total
목록to_datetime (1)
달나라 노트
Python Pandas : pandas.to_datetime
pandas.to_datetime to_datetime은 어떤 날짜를 나타내는 문자열을 정해진 format을 기반으로 Date 형식으로 바꿔주는 역할을 합니다. Pandas 공식 문서를 보면 굉장히 많은 인자가 to_datetime에 적용될 수 있지만 여기서는 한번 간단하게 실사용 위주로 알아봅시다. import pandas as pd x = pd.to_datetime('20200123') print(x) print(type(x)) x = pd.to_datetime('2020-01-23') print(x) print(type(x)) - Output 2020-01-23 00:00:00 2020-01-23 00:00:00 결과를 보면 20200123이라는 문자가 2020-01-23 00:00:00이라는 Ti..
Python/Python Pandas
2020. 11. 23. 16:27