DataFrame.applyMap
Apply a function to a Dataframe values element-wise.
Last updated
Apply a function to a Dataframe values element-wise.
Last updated
danfo.DataFrame.applyMap(callable, options)
Parameters | Type | Description | Default |
---|---|---|---|
Note that the specified function passed to applyMap will be called with each element in the DataFrame. If you need to apply a function across an axis, then use the apply function.
callable
Function
Function to apply to each column or row
options
Object
axis: 0 or 1. If 0, compute the power column-wise, if 1, row-wise
{axis: 1}