Closed tsferro2 closed 3 years ago
I am looking to capture the minimaIdxs, maximaIdxs from separate Low and High series respectively, but the following line (taken from the read me file):
minimaIdxs, maximaIdxs = trendln.get_extrema(df['Low'], df['High'])
throws the following error:
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
also should add that each series contains only numbers, ie no nans/missing values
I figured out my issue, just needed to pass a tuple:
minimaIdxs, maximaIdxs = trendln.get_extrema((df['Low'], df['High']))
I am looking to capture the minimaIdxs, maximaIdxs from separate Low and High series respectively, but the following line (taken from the read me file):
minimaIdxs, maximaIdxs = trendln.get_extrema(df['Low'], df['High'])
throws the following error:
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
also should add that each series contains only numbers, ie no nans/missing values