def test__aggregate_on_chunks(self):
        self.assertListEqual(
            _aggregate_on_chunks(x=pd.Series([0, 1, 2, 3]), f_agg="max", chunk_len=2),
            [1, 3],
        )
        self.assertListEqual(
            _aggregate_on_chunks(x=pd.Series([1, 1, 3, 3]), f_agg="max", chunk_len=2),
            [1, 3],
        )

        self.assertListEqual(
            _aggregate_on_chunks(x=pd.Series([0, 1, 2, 3]), f_agg="min", chunk_len=2),
            [0, 2],
        )
        self.assertListEqual(
            _aggregate_on_chunks(
                x=pd.Series([0, 1, 2, 3, 5]), f_agg="min", chunk_len=2
            ),
            [0, 2, 5],
        )

        self.assertListEqual(
            _aggregate_on_chunks(x=pd.Series([0, 1, 2, 3]), f_agg="mean", chunk_len=2),
            [0.5, 2.5],
        )
        self.assertListEqual(
            _aggregate_on_chunks(
                x=pd.Series([0, 1, 0, 4, 5]), f_agg="mean", chunk_len=2
            ),
            [0.5, 2, 5],
        )
        self.assertListEqual(
            _aggregate_on_chunks(
                x=pd.Series([0, 1, 0, 4, 5]), f_agg="mean", chunk_len=3
            ),
            [1 / 3, 4.5],
        )

        self.assertListEqual(
            _aggregate_on_chunks(
                x=pd.Series([0, 1, 2, 3, 5, -2]), f_agg="median", chunk_len=2
            ),
            [0.5, 2.5, 1.5],
        )
        self.assertListEqual(
            _aggregate_on_chunks(
                x=pd.Series([-10, 5, 3, -3, 4, -6]), f_agg="median", chunk_len=3
            ),
            [3, -3],
        )
        self.assertListEqual(
            _aggregate_on_chunks(
                x=pd.Series([0, 1, 2, np.NaN, 5]), f_agg="median", chunk_len=2
            ),
            [0.5, 2, 5],
        )