반응형
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
- gas
- Tkinter
- dataframe
- PySpark
- array
- c#
- Mac
- Google Spreadsheet
- hive
- math
- Python
- google apps script
- Excel
- Apache
- string
- django
- PANDAS
- matplotlib
- 파이썬
- Google Excel
- numpy
- SQL
- Kotlin
- Github
- PostgreSQL
- Redshift
- Java
- list
- GIT
Archives
- Today
- Total
목록날짜 요일 변환 (1)
달나라 노트
Python datetime : weekday, isoweekday (week day number 요일번호 추출)
import datetime print(datetime.datetime.now()) print(datetime.datetime.now().weekday()) print(datetime.datetime.now().isoweekday()) -- Result 2021-03-27 01:27:32.470639 5 6 datetime 자료형에 weekday, isoweekday method를 적용시켜 요일 번호를 받아낼 수 있습니다. 각 method 별로 각 번호가 무슨 요일을 해당하는지는 아래 표를 보시면 됩니다. weekday isoweekday Mon 0 1 Tue 1 2 Wed 2 3 Thu 3 4 Fri 4 5 Sat 5 6 Sun 6 7
Python/Python datetime
2021. 3. 27. 01:30