Skip to content

Instantly share code, notes, and snippets.

@sakurai-youhei
Last active December 3, 2020 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakurai-youhei/8a27889e32d8a9f3cf005447594d4eca to your computer and use it in GitHub Desktop.
Save sakurai-youhei/8a27889e32d8a9f3cf005447594d4eca to your computer and use it in GitHub Desktop.
Holidays & bizdays in Pandas
import shukujitsu
holidays = alldays & pd.DatetimeIndex(shukujitsu.Japan()) # 期間中の祝日
bizdays = weekdays.difference(holidays) # 期間中の平日
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment