title: How to find number of Mondays or any other weekday between two dates in Python?
body: <p>I have two dates between which I need to find out how many Mon- Fri are coming(except for Sta, Sun), everyday should be counted   </p>
  
  <p>Currently I am thinking this:</p>
  
  <pre><code>import calendar
  import datetime
  start_date = datetime.datetime.strptime("01/01/2017",'%d/%m/%Y')
  end_date = datetime.datetime.strptime("31/01/2017",'%d/%m/%Y')
  week_arr = [0] * 7
  calendar.day_name[start_date.weekday()] ## will give me name of day
  """
  As I receive Monday I will increment week_arr[0] by 1, Tuesday
  week_arr[1]+= 1,
  """
  </code></pre>
  
  <p>I am not getting how to do it effectively so that I dont use much line of code(less if -else and for loops), may be some tricks in pandas. </p>