-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
Closed
Labels
CleanClosing CandidateMay be closeable, needs more eyeballsMay be closeable, needs more eyeballsDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversions
Description
When I was developing #16237, I noticed that the API for checking dtype is quite messy. We appear to have duplicate functionality, and the interface is not clear as to what we should accept.
I propose that for all such dtype checking functions, we should accept ANY array-like and ANY dtype OR type object and cast any list-like object to np.array.
Also, I added several TODO in that same file that I was hoping to get some feedback on. They stood out to me because they seemed either non-intuitive OR symptomatic of the API redundancy that I was referring to.
is_datetimetzseems like a duplicate ofis_datetime64tz_dtype. Do we need it?is_periodseems like a duplicate ofis_period_arraylike. Do we need it?- Should
Periodbe an instance ofPeriodDtype? - Should
Intervalbe an instance ofIntervalDtype?
Metadata
Metadata
Assignees
Labels
CleanClosing CandidateMay be closeable, needs more eyeballsMay be closeable, needs more eyeballsDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversions