Matplotlib Tutorial (Part 6): Histograms




[ad_1]

In this video, we will be learning how to create histograms in Matplotlib.

This video is sponsored by Brilliant. Go to https://brilliant.org/cms to sign up for free. Be one of the first 200 people to sign up with this link and get 20% off your premium subscription.

In this Python Programming video, we will be learning how to create histograms in Matplotlib. Histograms are great for breaking your data into bins and seeing where your data falls based on those bins. Let’s get started…

The code from this video (with added logging) can be found at:
http://bit.ly/Matplotlib-06

✅ Support My Channel Through Patreon:
https://www.patreon.com/coreyms

✅ Become a Channel Member:
https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join

✅ One-Time Contribution Through PayPal:
https://goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet – 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet – 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet – MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey’s Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website – http://coreyms.com/
My Second Channel – https://www.youtube.com/c/coreymschafer
Facebook – https://www.facebook.com/CoreyMSchafer
Twitter – https://twitter.com/CoreyMSchafer
Instagram – https://www.instagram.com/coreymschafer/

#Python #Matplotlib

Source


[ad_2]

Comment List

  • Corey Schafer
    November 23, 2020

    I hope everyone finds this video helpful. The next video of the series will be posted tomorrow at the same time. The next video will cover how to create scatter plots. We will use YouTube API data to plot views/likes from trending videos. We will also learn how to use color and size to add even more information to our plots, so be sure to check that out.

    I'd like to thank Brilliant for sponsoring this series. If you'd like to check them out then you can sign up with this link and get 20% off your premium subscription:
    https://brilliant.org/cms

  • Corey Schafer
    November 23, 2020

    Why did you create new variables of age and id?

  • Corey Schafer
    November 23, 2020

    Thanks man!!

  • Corey Schafer
    November 23, 2020

    Thank you this really helped me out

  • Corey Schafer
    November 23, 2020

    how to add the number of average line?

  • Corey Schafer
    November 23, 2020

    Love your tutorials ! Thank you!!!!!

  • Corey Schafer
    November 23, 2020

    Thank you! This helped me

  • Corey Schafer
    November 23, 2020

    Thanks very much!

  • Corey Schafer
    November 23, 2020

    I can't find the ID and ages data on GitHub website. any help?

  • Corey Schafer
    November 23, 2020

    Im getting error in this video

    To verify i cant see code from top to bottom

    Before ending video , you should show complete code of the file…. for people like us.

  • Corey Schafer
    November 23, 2020

    sir, how to input different colors for different bins in one plot of histogram? any codes? please help me?

  • Corey Schafer
    November 23, 2020

    Hii corey..your videos are really helpful…it makes everything so easy and makes programming fun…

  • Corey Schafer
    November 23, 2020

    0 dislikes, god dayum son

  • Corey Schafer
    November 23, 2020

    hey, great video, just wanna ask you what is the diffrence between range and bins of a hist ?
    thank you in advance

  • Corey Schafer
    November 23, 2020

    only 1 person disliked:)

  • Corey Schafer
    November 23, 2020

    Great video and u teaches as simple as easy way . We can easily understand. Every topic u saws us with all options and deeply. Great work.

  • Corey Schafer
    November 23, 2020

    sorry i have a question
    when i installing the package " plt" .
    That is displayed

    " ERROR: Could not find a version that satisfies the requirement plt (from versions: none)
    ERROR: No matching distribution found for plt
    "

    I need help :/ pls

  • Corey Schafer
    November 23, 2020

    @Corey you are the best, am gonna leave a thank you on my portfolio in your name

  • Corey Schafer
    November 23, 2020

    programmers aged between 100 and 110 are feeling offended

  • Corey Schafer
    November 23, 2020

    Amazing video!!

  • Corey Schafer
    November 23, 2020

    thank you so much

  • Corey Schafer
    November 23, 2020

    A big thank you for your videos. I have done a small change, correct me if I am wrong. I am a beginner. I imported statistics, and for median_age I used ;
    median_age=sorted(data["Age"]) [ len(data["Age"])//2]

  • Corey Schafer
    November 23, 2020

    Hi Corey,

    first I am a big fan of your tutorials. I have learned most of my Python skills by them.

    At 7:00 you want to remove the 10-20 value from the histogram and just deleted the value in the list. I prefer to keep the original data as it is and use list funcionality bins=bins[1:] (plt.hist(ages, bins=bins[1:], edgecolor='black')) to remove values from the x-axis. Do I get something wrong or do you have a specific reason to do it your way?

  • Corey Schafer
    November 23, 2020

    Jesus, 699 likes and 0 dislikes!

  • Corey Schafer
    November 23, 2020

    Very well explained I got confused in the bin attribute, you made my day.😇😇😇😇

  • Corey Schafer
    November 23, 2020

    I couldn't download data.csv file. Alt+left clic gives me html format file 🙁
    Any ideas, how I can do it correctly?

  • Corey Schafer
    November 23, 2020

    17586 views and 586 likes. Does it hurt to give a thumbs up?

  • Corey Schafer
    November 23, 2020

    Hey When I use csv instead pandas that time my x axes values are overlap but when i use pandas that time everything is good
    what is reason behind that can any one explain me

Write a comment