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