Often times I create plots where I need to discretize data via cut() or qcut(). The functions work appropriately, however the bin labels spit out 10+ decimal places which looks less than ideal on a plot axis (and in dataframes as well). Pandas has a parameterprecision in their cut and qcut functions that sets the precision at which to store and display the bin labels to address this issue.
This would be amazing if we could have this parameter in polars!
Description
Often times I create plots where I need to discretize data via
cut()
orqcut()
. The functions work appropriately, however the bin labels spit out 10+ decimal places which looks less than ideal on a plot axis (and in dataframes as well). Pandas has a parameterprecision
in theircut
andqcut
functions that sets the precision at which to store and display the bin labels to address this issue.This would be amazing if we could have this parameter in polars!