Unclear error produced by resampling with NaT in Index #13020
Labels
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Resample
resample method
Testing
pandas testing functions or related to the test suite
Milestone
Similar to #4746, trying to
resample
with an index containingNaT
produces rather ambiguous error messages of the form:Something like
cannot resample from index containing Not-a-Time (NaT)
would be more helpful to users.MWE
This example index contains duplicate values, but results are the same w/ or w/o them.
output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: