Skip to content

Commit 8d16543

Browse files
committed
one more bin test
1 parent 78de4c5 commit 8d16543

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_tables.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,18 @@ def test_bin(table):
693693
7.75 | 1 | 1
694694
10 | 0 | 0
695695
""")
696+
binned = table.bin('points', bins=[-1, 1, 3, 5, 7, 9, 11, 13])
697+
assert_equal(binned, """
698+
bin | points count
699+
-1 | 0
700+
1 | 3
701+
3 | 0
702+
5 | 0
703+
7 | 0
704+
9 | 1
705+
11 | 0
706+
13 | 0
707+
""")
696708

697709

698710
##########

0 commit comments

Comments
 (0)