r"""Get the positive values, with negative 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)
| 1542 | # |
| 1543 | |
| 1544 | def upc(f, c): |
| 1545 | r"""Get the positive values, with negative values zeroed. |
| 1546 | |
| 1547 | Parameters |
| 1548 | ---------- |
| 1549 | f : pandas.DataFrame |
| 1550 | Dataframe with column ``c``. |
| 1551 | c : str |
| 1552 | Name of the column. |
| 1553 | |
| 1554 | Returns |
| 1555 | ------- |
| 1556 | new_column : pandas.Series (float) |
| 1557 | The array containing the new feature. |
| 1558 | |
| 1559 | """ |
| 1560 | new_column = f.apply(pval, axis=1, args=[c]) |
| 1561 | return new_column |
| 1562 | |
| 1563 | |
| 1564 | # |