More descriptive ylabel for Series.hist() #10485

Closed
clarkfitzg opened this Issue Jul 1, 2015 · 5 comments

Comments

Projects
None yet
3 participants
Contributor

clarkfitzg commented Jul 1, 2015

s = pd.Series(np.random.randn(100))
s.plot(kind='hist')
s.hist()

Running s.plot(kind='hist') labels the y axis with the word 'Degree'. A more informative label might be 'count', 'frequency', or 'density'.

Also, it seems strange that s.plot(kind='hist') and s.hist() produce plots with different labels / gridlines.

Looks like this came from PR #7809. cc @sinhrks, @jreback

Member

shoyer commented Jul 2, 2015

The name "Frequency" sounds more appropriate to me -- unless normed=True, in which case "Density" would be the right word.

Contributor

clarkfitzg commented Jul 2, 2015

+1 for 'Frequency'. That would make sense to me if normed=True or not. 'Density' makes me think of a probability density function.

Member

sinhrks commented Jul 2, 2015

Related to #9093. The reason I've added ylabel is for consistency with kind='kde'. I'm willing to change it if there is better word choice (of course PR is welcome!).

Contributor

clarkfitzg commented Jul 2, 2015

Looks like kind='kde' labels it with 'Density'.

sinhrks added this to the 0.17.0 milestone Jul 15, 2015

Member

sinhrks commented Jul 15, 2015

Closed by #10493. Thanks @clarkfitzg !

sinhrks closed this Jul 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment