Skip to content

Commit d468e57

Browse files
committed
test
1 parent 8d9d42b commit d468e57

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

skrub/_reporting/tests/test_plotting.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,11 @@ def test_histogram():
3333
high = np.nextafter(low, 11.0)
3434
data = pd.Series([low, high])
3535
_, hist = _plotting.histogram(data)
36+
37+
# all infinite. +- inf are outliers
38+
data = pd.Series(
39+
[None, None, float("nan"), float("-inf"), float("-inf"), float("inf")]
40+
)
41+
_, hist = _plotting.histogram(data)
42+
assert hist["n_low_outliers"] == 2
43+
assert hist["n_high_outliers"] == 1

0 commit comments

Comments
 (0)