altair-viz / altair-transform

Evaluation of Vega-Lite transforms in Python
MIT License
70 stars 8 forks source link

Improve bin transform #9

Closed jakevdp closed 5 years ago

jakevdp commented 5 years ago

Vega has some fairly sophisticated logic around choosing bin boundaries. Currently altair-transform does not do a good job of duplicating that logic.

jakevdp commented 5 years ago

We essentially need to transform the bin logic in vega-statistics to Python: https://github.com/vega/vega/blob/master/packages/vega-statistics/src/bin.js