# {py:mod}`haniwers.v1.preprocess.aggregator`

```{py:module} haniwers.v1.preprocess.aggregator
```

```{autodoc2-docstring} haniwers.v1.preprocess.aggregator
:allowtitles:
```

## Module Contents

### Functions

````{list-table}
:class: autosummary longtable
:align: left

* - {py:obj}`resample_by_interval <haniwers.v1.preprocess.aggregator.resample_by_interval>`
  - ```{autodoc2-docstring} haniwers.v1.preprocess.aggregator.resample_by_interval
    :summary:
    ```
* - {py:obj}`compute_statistics <haniwers.v1.preprocess.aggregator.compute_statistics>`
  - ```{autodoc2-docstring} haniwers.v1.preprocess.aggregator.compute_statistics
    :summary:
    ```
* - {py:obj}`compute_event_rates <haniwers.v1.preprocess.aggregator.compute_event_rates>`
  - ```{autodoc2-docstring} haniwers.v1.preprocess.aggregator.compute_event_rates
    :summary:
    ```
````

### API

````{py:function} resample_by_interval(df: pandas.DataFrame, interval_seconds: int = 600) -> pandas.DataFrame
:canonical: haniwers.v1.preprocess.aggregator.resample_by_interval

```{autodoc2-docstring} haniwers.v1.preprocess.aggregator.resample_by_interval
```
````

````{py:function} compute_statistics(df: pandas.DataFrame, processed_df: pandas.DataFrame, interval_seconds: int = 600) -> pandas.DataFrame
:canonical: haniwers.v1.preprocess.aggregator.compute_statistics

```{autodoc2-docstring} haniwers.v1.preprocess.aggregator.compute_statistics
```
````

````{py:function} compute_event_rates(df: pandas.DataFrame, interval_seconds: int = 600) -> pandas.DataFrame
:canonical: haniwers.v1.preprocess.aggregator.compute_event_rates

```{autodoc2-docstring} haniwers.v1.preprocess.aggregator.compute_event_rates
```
````
