parameters: (self, axis=0, **kwargs)
return_statement: return self._cython_transform("cummax", numeric_only=False)
docstring: Cumulative max for each group.
  
          Returns
          -------
          Series or DataFrame
docstring_summary: Cumulative max for each group.
docstring_tokens: Cumulative max for each group .
function: def cummax(self, axis=0, **kwargs):
          """
          Cumulative max for each group.
  
          Returns
          -------
          Series or DataFrame
          """
          if axis != 0:
              return self.apply(lambda x: np.maximum.accumulate(x, axis))
  
          return self._cython_transform("cummax", numeric_only=False)
function_tokens: def cummax ( self , axis = 0 , * * kwargs ) : if axis != 0 : return self . apply ( lambda x : np . maximum . accumulate ( x , axis ) ) return self . _cython_transform ( "cummax" , numeric_only = False )