I get the python error- TypeError: apply_is_valid() missing 1 required positional argument: ‘RR’
I don’t understand why… here is the function
CANDLES_BACK_TO_PIVOT = 55
RR = 1.5
def apply_is_valid(row, df_an, index, CANDLES_BACK_TO_PIVOT, signals, RR):
… rest of function …
df_an[‘is_valid’] = df_an.apply(lambda row: apply_is_valid(row, df_an, row.name, CANDLES_BACK_TO_PIVOT, RR), axis=1)
The error occurs when I run the .apply
New contributor
Suz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.