def test_infer_nullable_series_schema_statistics( null_index, series, expectation ): """Test nullable series statistics are correctly inferred.""" series.iloc[null_index] = None statistics = schema_statistics.infer_series_statistics(series) _test_statistics(statistics, expectation)
def test_infer_series_schema_statistics(series, expectation): """Test series statistics are correctly inferred.""" statistics = schema_statistics.infer_series_statistics(series) assert statistics == expectation
def test_infer_series_schema_statistics(series, expectation) -> None: """Test series statistics are correctly inferred.""" statistics = schema_statistics.infer_series_statistics(series) _test_statistics(statistics, expectation)