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

Function dpc

alphapy/transforms.py:398–415  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

396#
397
398def 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#

Callers 1

rsiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected