Q:

Write a NumPy program to find the first Monday in May 2017

0

Write a NumPy program to find the first Monday in May 2017.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import numpy as np
print("First Monday in May 2017:")
print(np.busday_offset('2017-05', 0, roll='forward', weekmask='Mon'))

Sample Output:

First Monday in May 2017:                                              
2017-05-01

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now