You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
importpandas_taasta
Issue Description
D:\t70\duanxian>python duanxian_TDI_TSI_DIV.py
Traceback (most recent call last):
File "D:\t70\duanxian\duanxian_TDI_TSI_DIV.py", line 11, in
import pandas_ta as ta # 新增:用于 ALMA 等指标
^^^^^^^^^^^^^^^^^^^^^^
File "D:\veighna_studio\Lib\site-packages\pandas_ta_init_.py", line 116, in
from pandas_ta.core import *
File "D:\veighna_studio\Lib\site-packages\pandas_ta\core.py", line 18, in
from pandas_ta.momentum import *
File "D:\veighna_studio\Lib\site-packages\pandas_ta\momentum_init_.py", line 34, in
from .squeeze_pro import squeeze_pro
File "D:\veighna_studio\Lib\site-packages\pandas_ta\momentum\squeeze_pro.py", line 2, in
from numpy import NaN as npNaN
ImportError: cannot import name 'NaN' from 'numpy' (D:\veighna_studio\Lib\site-packages\numpy_init_.py). Did you mean: 'nan'?
Expected Behavior
import pandas_ta success
Installed Versions
Operating System: [Your OS, e.g., Windows 10/11]
Python Version: [Your Python version, e.g., 3.9, 3.10, 3.11 - based on your traceback, it seems like Python 3.13 based on "cp313" in numpy download, please confirm]
pandas_ta Version: 0.3.14b0 (Confirmed via pip show pandas_ta)
numpy Version: 2.2.5 (Confirmed via pip show numpy)
pandas Version: 2.2.3 (Confirmed via pip show pandas)
The text was updated successfully, but these errors were encountered:
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
D:\t70\duanxian>python duanxian_TDI_TSI_DIV.py
Traceback (most recent call last):
File "D:\t70\duanxian\duanxian_TDI_TSI_DIV.py", line 11, in
import pandas_ta as ta # 新增:用于 ALMA 等指标
^^^^^^^^^^^^^^^^^^^^^^
File "D:\veighna_studio\Lib\site-packages\pandas_ta_init_.py", line 116, in
from pandas_ta.core import *
File "D:\veighna_studio\Lib\site-packages\pandas_ta\core.py", line 18, in
from pandas_ta.momentum import *
File "D:\veighna_studio\Lib\site-packages\pandas_ta\momentum_init_.py", line 34, in
from .squeeze_pro import squeeze_pro
File "D:\veighna_studio\Lib\site-packages\pandas_ta\momentum\squeeze_pro.py", line 2, in
from numpy import NaN as npNaN
ImportError: cannot import name 'NaN' from 'numpy' (D:\veighna_studio\Lib\site-packages\numpy_init_.py). Did you mean: 'nan'?
Expected Behavior
import pandas_ta success
Installed Versions
Operating System: [Your OS, e.g., Windows 10/11]
Python Version: [Your Python version, e.g., 3.9, 3.10, 3.11 - based on your traceback, it seems like Python 3.13 based on "cp313" in numpy download, please confirm]
pandas_ta Version: 0.3.14b0 (Confirmed via pip show pandas_ta)
numpy Version: 2.2.5 (Confirmed via pip show numpy)
pandas Version: 2.2.3 (Confirmed via pip show pandas)
The text was updated successfully, but these errors were encountered: