API Consistency: validations on no-ops #36466
Labels
API - Consistency
Internal Consistency of API/Behavior
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Uh oh!
There was an error while loading. Please reload this page.
We are not consistent about whether we do validation checks on no-ops
Examples of no-ops:
datetimelike_array[empty_indexer] = empty_values_wrong_dtype
# <-- we do not raiseseries_dt64[empty_indexer] = empty_object_dtype
# <-- we cast to object, meaning we did raise internallyarr_with_no_nas.fillna(invalid_fill_value)
# <-- we mostly dont raise, see belowinterval_index.take(indexer_with_no_negative_ones, fill_value=something_invalid)
# <-- we do not raiseI think we should (with deprecation cycles where necessary) aim to be consistently strict in this genre of check.
Update: listing related issues as I find them
The text was updated successfully, but these errors were encountered: