Q:

Write a NumPy program to find the number of weekdays in March 2017

0

Write a NumPy program to find the number of weekdays in March 2017.

Note: "busday" default of Monday through Friday being valid days.

All Answers

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

import numpy as np
print("Number of weekdays in March 2017:")
print(np.busday_count('2017-03', '2017-04'))

Sample Output:

Number of weekdays in March 2017:                                      
23

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