Clean up null checking #32206
Labels
API - Consistency
Internal Consistency of API/Behavior
Enhancement
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
From the discussion in #31939 it was pointed out that there are places where we check for nullness in an unnecessarily verbose way, e.g.: https://github.com/pandas-dev/pandas/blob/master/pandas/_libs/hashtable_class_helper.pxi.in#L1036.
Ideally we should just be able to use
checknull
frompandas/_libs/missing.pyx
, but would need to make sure this catches all cases, such asdecimal.Decimal("nan")
(which I think isn't included at the moment).The text was updated successfully, but these errors were encountered: