Last active
April 12, 2019 10:34
-
-
Save vlad-bezden/02a9793671601ff3c3783bd12b1ed63f to your computer and use it in GitHub Desktop.
Gets weekday name (Monday - Sunday), day of week as integer (Monday = 0 - Sunday = 6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
df = pd.Timestamp("2019-04-12") | |
print(f"{df}, {df.dayofweek}, {df.weekday_name}") | |
# 2019-04-12 00:00:00, 4, Friday |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment