-
Notifications
You must be signed in to change notification settings - Fork 232
Open
Description
I keep getting error from macd:
def compute_macd(close):
macd = pandas_ta.macd(close=close, length=20).iloc[:,0]
return macd.sub(macd.mean()).div(macd.std())
df['macd'] = df.groupby(level=1, group_keys=False)['adj close'].apply(compute_macd)
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
result = self._python_apply_general(f, self._selected_obj)
values, mutated = self._grouper.apply_groupwise(f, data, self.axis)
res = f(group)
return op(a, b)
what is the solution
Metadata
Metadata
Assignees
Labels
No labels