No groupings.
(self)
| 633 | self.data = pd.DataFrame({"values": [0, 4, 8, 22, 2, 2, 10], "dimension": ["a", "a", "a", "a", "b", "b", "b"]}) |
| 634 | |
| 635 | def test_histogram(self): |
| 636 | """No groupings.""" |
| 637 | ch = chartify.Chart(y_axis_type="density") |
| 638 | ch.plot.histogram(self.data, "values", bins=2, method="count") |
| 639 | assert np.array_equal(chart_data(ch, "")["values"], [6, 1]) |
| 640 | assert np.array_equal(chart_data(ch, "")["max_edge"], [11.0, 22.0]) |
| 641 | assert np.array_equal(chart_data(ch, "")["min_edge"], [0.0, 11.0]) |
| 642 | |
| 643 | def test_grouped_histogram(self): |
| 644 | """Grouped histogram.""" |
nothing calls this directly
no test coverage detected