-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API/DOC: types covered by lib.infer_dtype #23554
Comments
@TomAugspurger |
I haven't been able to wrap my head around
Out[26] looks like a bug. FWIW, rewriting the Series constructor is on my medium-term todo list, but not before 0.24 is done. Part of that would be a cleanup of infer_dtype. |
Discovered a relevant usage of the |
complex numbers now appear to work for GH pandas-dev#23554. There are no examples as to how to update the whatsnew documentation for conftest.py, so I don't know whether or how to add an entry for this change. Signed-off-by: Michael Tiemann <72577720+MichaelTiemannOSC@users.noreply.github.com>
complex numbers now appear to work for GH #23554. There are no examples as to how to update the whatsnew documentation for conftest.py, so I don't know whether or how to add an entry for this change. Signed-off-by: Michael Tiemann <72577720+MichaelTiemannOSC@users.noreply.github.com>
complex numbers now appear to work for GH pandas-dev#23554. There are no examples as to how to update the whatsnew documentation for conftest.py, so I don't know whether or how to add an entry for this change. Signed-off-by: Michael Tiemann <72577720+MichaelTiemannOSC@users.noreply.github.com>
In #23167, I'm trying consistently infer the dtype of the underlying Series/Index while calling the constructor of the
.str
-accessor. For testing this thoroughly, I wanted to build a parametrized fixture that returns an ndarray for all the dtypes thatlib.infer_dtype
can infer. I based myself on the list in the docstring, but found the following:'complex'
as a possible outcome, but this does not work (instead returning'mixed'
)and I don't believe it's actually possible to achieve this, given the code.
'timedelta64'
, but this similarly does not work (returning'timedelta'
; and can't be hit either, IMO)'interval'
, but that is a possible outcome:So it needs to be discussed if
'complex'
/'timedelta64'
should be added to the code or removed from the docstring, and vice versa for'interval'
.The text was updated successfully, but these errors were encountered: