Skip to content

Issue36124 display of int enums #36820

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

Closed
Prev Previous commit
Next Next commit
Update the docstring for is_integer_object() with a note that it coun…
…ts IntEnums as integers.
  • Loading branch information
pleepleus committed Oct 2, 2020
commit cec0c78f0df19fe0ec3540eb4be929fa784da075
2 changes: 1 addition & 1 deletion pandas/_libs/tslibs/util.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ cdef inline bint is_integer_object(object obj) nogil:

Notes
-----
This counts np.timedelta64 objects as integers.
This counts np.timedelta64 and IntEnums objects as integers.
"""
return (not PyBool_Check(obj) and PyArray_IsIntegerScalar(obj)
and not is_timedelta64_object(obj))
Expand Down