r"""Get the negative values, with positive values zeroed. Parameters ---------- f : pandas.DataFrame Dataframe with column ``c``. c : str Name of the column. Returns ------- new_column : pandas.Series (float) The array containing the new feature.
(f, c)
| 396 | # |
| 397 | |
| 398 | def dpc(f, c): |
| 399 | r"""Get the negative values, with positive values zeroed. |
| 400 | |
| 401 | Parameters |
| 402 | ---------- |
| 403 | f : pandas.DataFrame |
| 404 | Dataframe with column ``c``. |
| 405 | c : str |
| 406 | Name of the column. |
| 407 | |
| 408 | Returns |
| 409 | ------- |
| 410 | new_column : pandas.Series (float) |
| 411 | The array containing the new feature. |
| 412 | |
| 413 | """ |
| 414 | new_column = f.apply(mval, axis=1, args=[c]) |
| 415 | return new_column |
| 416 | |
| 417 | |
| 418 | # |