Applies Python functions to rows or columns of a pandas dataframe, which may or may not result in aggregation.
Pandas apply available in DataFrame and Series classes is the equivalent of map in many functional languages like Haskell or Scala. It calls the function given in the argument for each element/row/column (depending on other parameters).
More detailed documentation can be found in:
 
     
     
     
     
     
     
     
     
     
     
     
     
     
    