Skip to content

Instantly share code, notes, and snippets.

@BlaneyXYZ
Created May 25, 2017 10:44
Show Gist options
  • Save BlaneyXYZ/717a34b14d842ab43d7edf6b7efc3e6f to your computer and use it in GitHub Desktop.
Save BlaneyXYZ/717a34b14d842ab43d7edf6b7efc3e6f to your computer and use it in GitHub Desktop.
import pandas as pd
rng = pd.date_range(start='1/1/1901', end='12/31/2000', freq='D')
count = 0
for date in rng:
if date.weekday() == 6:
count += 1
print(count)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment