Skip to content

DOC: consider updating visualization.rst to use plot submethods rather than kind #11043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shoyer opened this issue Sep 10, 2015 · 3 comments
Closed
Labels
Milestone

Comments

@shoyer
Copy link
Member

shoyer commented Sep 10, 2015

Another followup to #9321:

Most of the documentation examples in visualization.rst (the main plotting docs) currently use the kind argument. We should probably switch these to use the plotting submethods instead, to push users in that direction.

@jreback jreback modified the milestones: Next Major Release, 0.17.1 Sep 10, 2015
@jreback jreback modified the milestones: Next Major Release, 0.17.1 Nov 18, 2015
@MattRijk
Copy link
Contributor

Question. I'm using analytics.quant-platform. Plotting submethod does not give me a graph just object. Kind argument works?

In [38]:
import pandas as pd
import numpy as np
%matplotlib inline

df = pd.DataFrame(np.random.rand(10, 2), columns=['a', 'b']).plot(kind='barh')

image

In [41]:
import pandas as pd
import numpy as np
%matplotlib inline

df = pd.DataFrame(np.random.rand(10, 2), columns=['a', 'b'])

df.plot.bar

Out[38]:
bound method FramePlotMethods.bar of <pandas.tools.plotting.FramePlotMethods object at 0x7f04b10fa908

@shoyer
Copy link
Member Author

shoyer commented Jan 13, 2016

@MattRijk you need to call the method df.plot.bar(), not df.plot.bar

@MattRijk
Copy link
Contributor

Alright. Works. That's weird i used .bar() a few times and nothing. Thanks

@jreback jreback modified the milestones: 0.18.0, Next Major Release Jan 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants