title: Python count number of daily changes in panel data
body: <p>I have a pandas dataframe of panel data where each row is a time series for an individual, each column is a day in the time series. On a daily basis I would like to count the number of day on day changes so I can determine what percentage of individuals change each day.</p>
  <pre><code>indiv = ['Tom', 'Mike', 'Dave']
  date_one = ['yes', 'yes', 'no']
  date_two = ['no', 'yes', 'no']
  date_three = ['yes', 'yes', 'yes']
  df = pd.DataFrame(zip(indiv, date_one, date_two, date_three), columns = ['name', '2020-01-29', '2020-01-30', '2020-01-31'])
  </code></pre>