dosubot[bot] commented on issue #23072:
URL: https://github.com/apache/superset/issues/23072#issuecomment-2980494718

   <!-- Answer -->
   Time-series operations like resampling and rolling are specified in a few 
key places in the Superset codebase:
   
   - The backend logic for applying these operations is in superset/viz.py, 
especially in the BaseViz and NVD3TimeSeriesViz classes. The process_data 
method in NVD3TimeSeriesViz handles the sequence of resampling (using the 
resample_rule and resample_method) and then rolling (using rolling_type, 
rolling_periods, etc.)—see the code for how these are applied in order 
[(source)](https://github.com/apache/superset/blob/4d6cdf4fea44164e5953357ceceb44c93cdee8e3/superset/viz.py).
   - The frontend configuration for these controls is in 
superset-frontend/src/explore/controlPanels/sections.tsx, under the 
NVD3TimeSeries section. This is where the available options for rolling and 
resampling are defined and exposed to the user 
[(source)](https://github.com/apache/superset/blob/4d6cdf4fea44164e5953357ceceb44c93cdee8e3/superset-frontend/src/explore/controlPanels/sections.tsx).
   - The actual pandas post-processing functions are implemented in 
superset/utils/pandas_postprocessing/resample.py for resampling and 
superset/utils/pandas_postprocessing/rolling.py for rolling 
[(resample)](https://github.com/apache/superset/blob/4d6cdf4fea44164e5953357ceceb44c93cdee8e3/superset/utils/pandas_postprocessing/resample.py)
 
[(rolling)](https://github.com/apache/superset/blob/4d6cdf4fea44164e5953357ceceb44c93cdee8e3/superset/utils/pandas_postprocessing/rolling.py).
   - The schema for rolling operation configuration is defined in 
superset/charts/schemas.py as ChartDataRollingOptionsSchema 
[(source)](https://github.com/apache/superset/blob/4d6cdf4fea44164e5953357ceceb44c93cdee8e3/superset/charts/schemas.py).
   
   Let me know if you want a deeper dive into any of these locations!
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/019f6a36-6560-4eda-8860-2d16d41cab0a?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/019f6a36-6560-4eda-8860-2d16d41cab0a?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/019f6a36-6560-4eda-8860-2d16d41cab0a?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/019f6a36-6560-4eda-8860-2d16d41cab0a?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/019f6a36-6560-4eda-8860-2d16d41cab0a?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/019f6a36-6560-4eda-8860-2d16d41cab0a?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/019f6a36-6560-4eda-8860-2d16d41cab0a?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[!
 [Share on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/23072)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to