반응형
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
- Presto
- 파이썬
- c#
- gas
- numpy
- Redshift
- array
- Python
- Google Excel
- Kotlin
- PostgreSQL
- PySpark
- Excel
- SQL
- Apache
- math
- Google Spreadsheet
- hive
- Tkinter
- Github
- Java
- google apps script
- matplotlib
- GIT
- django
- PANDAS
- dataframe
- string
- list
Archives
- Today
- Total
목록dt.strftime (1)
달나라 노트
Python Pandas : dt.strftime() (dataframe에서 date type을 string으로 변환, convert datetime to string in dataframe)
데이터를 다루다보면 날짜 데이터를 다양한 data type으로 바꿔야할 때가 많습니다. dataframe에 담긴 date type 데이터를 어떻게 텍스트나 숫자의 형태로 바꿀 때 유용하게 사용할 수 있는 함수가 dt.strftime입니다. Syntaxseries.dt.strftime(format) dt.strftime은 Series에 적용할 수 있습니다.그리고 parameter로 format을 받는데, date type의 데이터를 어떤 format의 string으로 바꿀지를 의미합니다. format은 다양한 기호로 적혀지는데 datetime format 기호 관련해서는 아래 글을 참조하면 좋습니다.https://cosmosproject.tistory.com/106 Python datetime : str..
Python/Python Pandas
2025. 9. 28. 03:21