Empty px.histogram() should not raise, matching scatter/bar/pie behavior. Regression test for https://github.com/plotly/plotly.py/issues/5534
()
| 650 | |
| 651 | |
| 652 | def test_empty_histogram(): |
| 653 | """Empty px.histogram() should not raise, matching scatter/bar/pie behavior. |
| 654 | |
| 655 | Regression test for https://github.com/plotly/plotly.py/issues/5534 |
| 656 | """ |
| 657 | fig = px.histogram() |
| 658 | assert len(fig.data) == 1 |
| 659 | assert fig.data[0].type == "histogram" |