You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also I'd like to label the last bin appropriately (>=3), but that only comes after I figure out how to make the last bin hold the data I want it to hold.
But clamping the scale doesn't work - I'm guessing it gets applied after the bin transformation?
Obviously I could do this in pandas myself before graphing, but I was hoping to accomplish it in altair.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Let's say I have a dataframe with a series whose values are
[1,1,2,2,3,4,4,4,4]
.I'd like to create a histogram with three bins:
1, 2, and >= 3
I've been reading the bin and scale docs and I can't find any way to do this; can somebody help me figure it out?
My current try is:
Also I'd like to label the last bin appropriately (
>=3
), but that only comes after I figure out how to make the last bin hold the data I want it to hold.But clamping the scale doesn't work - I'm guessing it gets applied after the bin transformation?
Obviously I could do this in pandas myself before graphing, but I was hoping to accomplish it in altair.
Beta Was this translation helpful? Give feedback.
All reactions