반응형
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 |
Tags
- Google Excel
- PANDAS
- array
- c#
- matplotlib
- PostgreSQL
- Kotlin
- Java
- list
- PySpark
- string
- Google Spreadsheet
- django
- Redshift
- google apps script
- GIT
- Mac
- math
- 파이썬
- Github
- SQL
- numpy
- gas
- Tkinter
- Apache
- dataframe
- Excel
- Python
- hive
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