-1
$\begingroup$

enter image description here

I know what "hue" does a little

I'm studying kaggle and the image is about bike sharing demand analysis

What I want to know is

shouldn't the second images's sum of each point's y axis be the first images's point's y axis??

$\endgroup$
0
$\begingroup$

You would expect that to be the case, however, by default seaborn.pointplot uses the average estimator to calculate the number for each hour. So the numbers you are seeing on the y-axis is the average number of bikes shared for each hour. Since the number of bikes shared is not equal for category workingday=0 and workingday=1 the two averages for those categories do not add up. Using estimator=sum for seaborn.pointplot does give the expected results.

enter image description here

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.