code: def cumany(series):
      
  
      anys = series.expanding().apply(np.any).astype(bool)
      return anys
docs: Calculates cumulative any of values. Equivalent to
      `series.expanding().apply(np.any).astype(bool)`.
  
      Args:
          series: column to compute cumulative any for.