MCPcopy Create free account
hub / github.com/ScottfreeLLC/AlphaPy / upc

Function upc

alphapy/transforms.py:1544–1561  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1542#
1543
1544def 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#

Callers 1

rsiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected