Coder Social home page Coder Social logo

Plotting a pandas dataframe? about bokeh HOT 4 CLOSED

bokeh avatar bokeh commented on May 6, 2024
Plotting a pandas dataframe?

from bokeh.

Comments (4)

pzwang avatar pzwang commented on May 6, 2024

There isn't, but there's also no reason why we couldn't implement this pretty easily. I need to look into how df.plot works more closely, to see what we need to do to replicate its behavior. From what I can tell by looking at the documentation (http://pandas.pydata.org/pandas-docs/stable/visualization.html), by default it overlays the named columns in a single plot, and it can optionally facet into subplots (but that seems to require directly using Matplotlib to set up the subplot frames?).

Plot types are: line, scatter, bar/stacked bar, parallel coordinates, and boxplot. Does this pretty much cover it?

from bokeh.

jvns avatar jvns commented on May 6, 2024

That's all the functionality I've used myself -- just tried the subplot option right this second. I think it would be great if it could just overlay the named columns in a single plot with a legend, to start.

from bokeh.

hughesadam87 avatar hughesadam87 commented on May 6, 2024

Hi guys,

This probably isn't helpful much, but I wanted to confirm that in my experience, there is no way in pandas to facet into subplots without setting them up beforehand in matplotlib with a call to plt.subplots(). Some advanced pandas plots like the scatter matrix will do this for you when they are called.

I wanted to point out that df.plot() returns an AxesSubplot object (eg <matplotlib.axes.AxesSubplot object at 0x38e31d0>), so maybe you'd just need to facet to this? I don't understand what would be involved of course...

from bokeh.

damianavila avatar damianavila commented on May 6, 2024

We have duplicated issues about pandas support.
I will close this one and link it to a more recent discussion living in the issue #140.
I will also transfer the milestone and the labels to the other issue.

from bokeh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.