Created
May 25, 2017 10:44
-
-
Save BlaneyXYZ/717a34b14d842ab43d7edf6b7efc3e6f to your computer and use it in GitHub Desktop.
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 | |
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