You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just upgraded my projects from pandas 0.16.2 to pandas 0.18.1, but I have a difference on some DataFrame.resample operations, with Weekly frequencies.
For instance, I want to resample daily data to weekly data (W-SUN), and apply an offset to the results, so each row will be a MONDAY and not a SUNDAY.
It's like the loffset parameter is not correctly taken into account in the new DataFrame.resample() implementation.
ie, the output with pandas 0.18.1 is the same as the one using pandas 0.16.2, but calling a.resample("1W", how={"value": "sum"}, loffset=None, closed="right", label="right")
I just upgraded my projects from pandas 0.16.2 to pandas 0.18.1, but I have a difference on some
DataFrame.resample
operations, with Weekly frequencies.For instance, I want to resample daily data to weekly data (
W-SUN
), and apply an offset to the results, so each row will be a MONDAY and not a SUNDAY.Code Sample
Problem description
With
pandas 0.16.2
, I got this correct output:ie, each row is a weekly aggregation of the data, and each date is a MONDAY
Resulting index is as follow:
However, with
pandas 0.18.1
, I got this output:each row is correctly aggregated, but the dates are SUNDAYs
Resulting index is as follow:
It's like the
loffset
parameter is not correctly taken into account in the newDataFrame.resample()
implementation.ie, the output with
pandas 0.18.1
is the same as the one usingpandas 0.16.2
, but callinga.resample("1W", how={"value": "sum"},
loffset=None, closed="right", label="right")
Output of
pd.show_versions()
pandas
0.16.1
installation:pandas
0.18.2
installation:The text was updated successfully, but these errors were encountered: