Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement