Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hv.timeseries.rolling doesn't work with object typed groupby #6329

Open
ahuang11 opened this issue Jul 16, 2024 · 0 comments
Open

hv.timeseries.rolling doesn't work with object typed groupby #6329

ahuang11 opened this issue Jul 16, 2024 · 0 comments
Labels
type: bug Something isn't correct or isn't working

Comments

@ahuang11
Copy link
Collaborator

ahuang11 commented Jul 16, 2024

import xarray as xr
import hvplot.pandas
from holoviews.operation import timeseries

ds = xr.tutorial.open_dataset("air_temperature")
df = ds.mean(dim=["lat", "lon"]).to_dataframe()
df["year"] = df.index.strftime("%b %Y")

curve = df.hvplot("time", "air", groupby="year").opts(color="black", title="Outlier Detection")
curve_rolling = timeseries.rolling(curve.clone(label="Rolling Mean"))
curve_rolling

Change "%b %Y" to "%Y" and it works.

@ahuang11 ahuang11 added TRIAGE Needs triaging type: bug Something isn't correct or isn't working and removed TRIAGE Needs triaging labels Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

No branches or pull requests

1 participant