An asfreq
method without resample
, and clarify or improve resample().asfreq() behavior for down-sampling
#3242
Labels
MCVE Code Sample
Expected Output
Docs say this:
I suppose this doc is not technically wrong, since upon careful reading, I realize it does not define a behavior for down-sampling. But it's easy to: (1) assume the same behavior (reindexing) for down-sampling and up-sampling and/or (2) expect behavior similar to
df.asfreq()
in pandas.Problem Description
I would argue for an
asfreq
method without resampling that matches the pandas behavior, which AFAIK, is to reindex starting at the first timestamp, at the specified interval.This can currently easily be achieved, so it's not a blocker.
Why I argue for
asfreq
functionality outside of resampling is thatasfreq(freq)
in pandas is purely a reindex, compared to egresample(freq).first()
which would give you a different time index.Output of
xr.show_versions()
Still on python27,
show_versions
actually throws an exception, because some HDF5 library doesn't have a magic property. I don't think this detail is relevant here though.The text was updated successfully, but these errors were encountered: