문제

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??

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 datascience.stackexchange
scroll top