TAcharts
TAcharts copied to clipboard
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
i.build(20, 60, 120, 30) File "C:\Python38\lib\site-packages\tacharts-0.0.30-py3.8.egg\TAcharts\indicators\ichimoku.py", line 90, in build self._build_lines(tenkan=tenkan_interval, kijun=kijun_interval) File "C:\Python38\lib\site-packages\tacharts-0.0.30-py3.8.egg\TAcharts\indicators\ichimoku.py", line 58, in _build_lines high = sma(self.df["high"], val, "max") File "C:\Python38\lib\site-packages\tacharts-0.0.30-py3.8.egg\TAcharts\wrappers.py", line 34, in wrapper if oldSeries: File "C:\Python38\lib\site-packages\pandas\core\generic.py", line 1442, in nonzero raise ValueError( ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
Hello, I have the same issue.
@x011 Change the line containing if oldSeries:
in C:\Python38\lib\site-packages\tacharts-0.0.30-py3.8.egg\TAcharts\wrappers.py
to if oldSeries.any():
.
@x011 Change the line containing
if oldSeries:
inC:\Python38\lib\site-packages\tacharts-0.0.30-py3.8.egg\TAcharts\wrappers.py
toif oldSeries.any():
.
I did make that change as mentioned but now i am getting: AttributeError: 'NoneType' object has no attribute 'any'
Please advise