Code Monkey home page Code Monkey logo

Comments (4)

SamLau95 avatar SamLau95 commented on July 25, 2024

@papajohn Is this for the hist method or for pivot_hist? (A quick explanation of the difference between the two would also be much appreciated!)

from datascience.

papajohn avatar papajohn commented on July 25, 2024

Good question. This change refers to hist. hist draws a histogram for
each column (perhaps overlaid onto one chart).

pivot_hist may not be long for this world. It's equivalent to the
following for loop on a two-column table t with columns a and b,
except that it bins in the same way for every subplot and supports
overlays. I'd like to generalize it somehow, but haven't figured out the
right way yet.

for v in np.unique(t[a]):
  t.where(a, v).select([b]).rename(b, v).hist()

On Wed, Aug 5, 2015 at 12:43 AM, Sam Lau [email protected] wrote:

@papajohn https://github.com/papajohn Is this for the hist method or
for pivot_hist? (A quick explanation of the difference between the two
would also be much appreciated!)


Reply to this email directly or view it on GitHub
#36 (comment).

from datascience.

papajohn avatar papajohn commented on July 25, 2024

By the way, I think this change may not be a change at all. The underlying matplotlib.hist method takes an array of bins or an integer bin count. If you find that there's nothing to change, just close the issue. http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.hist

from datascience.

SamLau95 avatar SamLau95 commented on July 25, 2024

Looks like the underlying hist method has this functionality! Closing.

from datascience.

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.