Skip to content

Instantly share code, notes, and snippets.

@sakurai-youhei
Created December 3, 2020 08:00
Show Gist options
  • Save sakurai-youhei/92847a9d55d1ae6848d5603e2aee5466 to your computer and use it in GitHub Desktop.
Save sakurai-youhei/92847a9d55d1ae6848d5603e2aee5466 to your computer and use it in GitHub Desktop.
Weekends & daysoff in Pandas
weekends = alldays.difference(weekdays) # 期間中の土日
daysoff = (weekends | holidays) # 期間中の休日
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment