-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
Closed
Labels
DeprecateFunctionality to remove in pandasFunctionality to remove in pandas
Description
Finding some things that don't behave in The Obvious Way:
-
dtypes.common.is_period
Never used outside of tests, checks for PeriodDtype-like arrays, notPeriodscalar. -
dtypes.common.is_datetimelike
Checks fordatetime64_dtype,datetime64tz_dtype,PeriodIndex, ortimedelta64_dtype, the last of which is not obvious (and in fact caused some bugs that will be fixed by [Bug] Fix various DatetimeIndex comparison bugs #22074) -
dtypes.common.is_int_or_datetime_dtypeonly used in two places, better to write out the conditions explicitly. -
dtypes.common.is_floating_dtypedeprecated in 0.20.0, is it too early to remove? -
dtypes.common.is_datetimetzappears to be a duplicate ofis_datetime64tz_dtype -
lib.is_integer
ReturnsTruefor timedelta64 objects; inconsistent withis_integer_dtypewhich excludes timedelta64.
Metadata
Metadata
Assignees
Labels
DeprecateFunctionality to remove in pandasFunctionality to remove in pandas