Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _run(self, X, interval, expected_values, expected_index, time_column, method=['mean']):
values, index = time_segments_aggregate(X, interval, time_column, method=method)
assert_allclose(values, expected_values)
assert_allclose(index, expected_index)