Pandas version checks
-
[x] I have checked that this issue has not already been reported.
-
[x] I have confirmed this bug exists on the latest version of pandas.
-
[x] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
import pandas as pd
import numpy as np
print(pd.__version__)
print(np.__version__)
pd.api.types.is_signed_integer_dtype(np.floating)
Issue Description
for pandas version 2.3.1 and numpy version 2.3.2, The code above throws exception:
Traceback (most recent call last):
File "scratch_40.py", line 6, in np.inexact
or np.floating
to a dtype not allowed
Expected Behavior
pd.api.types.is_signed_integer_dtype(np.floating) == False
Installed Versions
Comment From: jbrockmendel
I don't think we should expect this to work. There will never be an object with one of these objects as its dtype.