I added the line:        assert is_extension_array_dtype(result) or isinstance(result, np.ndarray)    to this function and ran the tests and got 7 failures. One of which was         tests.resample.test_datetime_index.test_resample_median_bug_1688    where the type is Series.