Visualizing Correlation Table – Data Analysis with Python and Pandas p.4




[ad_1]

Visualizing the correlation table with matshow in Matplotlib, among other things!

Text-based tutorial: https://pythonprogramming.net/correlation-table-python3-pandas-data-analysis/

Channel membership: https://www.youtube.com/channel/UCfzlCWGWYyIQ0aLC5w48gBQ/join
Discord: https://discord.gg/sentdex
Support the content: https://pythonprogramming.net/support-donate/
Twitter: https://twitter.com/sentdex
Facebook: https://www.facebook.com/pythonprogramming.net/
Twitch: https://www.twitch.tv/sentdex
G+: https://plus.google.com/+sentdex

Source


[ad_2]

Comment List

  • sentdex
    December 11, 2020

    please go to pythonprogramming.net–>–>Data Analysis it will help you a lot

  • sentdex
    December 11, 2020

    I am getting the error "<Figure size 360×360 with 0 Axes>". And, saved figure is coming blank.

  • sentdex
    December 11, 2020

    Fun tip:

    Pause all sentdex videos at 0:01 -> You can see him making a judgemental "ooooo" face xD

  • sentdex
    December 11, 2020

    Big fan, learning a ton from you. Quick question: your methods (such as .read_csv and _head() and .DataFrame() ) come up in blue for you but just in normal black text in my jupyter notebook… how can I change that?

  • sentdex
    December 11, 2020

    where the heck did you get all these mugs??? xD

  • sentdex
    December 11, 2020

    Sir I'm trying matplot lib in pycharm but plot doesn't show up. What can be the issue?

  • sentdex
    December 11, 2020

    Thanks sentdex!
    Can you or anyone explain this line:
    "abbv_dict[c] for c in min_wage_corr.columns"?
    I can't see any shorhand for this anywhere.
    how com the abbv_dict[c] before the "for loop" is a correct syntax?

  • sentdex
    December 11, 2020

    Where can i get this mugs ??

  • sentdex
    December 11, 2020
  • sentdex
    December 11, 2020

    for that heatmap you could use seaborn.
    eg:
    import seaborn as s
    s.heatmap(min_wage_corr)

  • sentdex
    December 11, 2020

    A bit confused with the lines "labels = [abbv_dict[c] for c in min_wage_corr.columns]" and "labels = [c[:2] for c in min_wage_corr.columns]" wish there was a bit more explanation with this, but I'll play with it until it makes sense.

  • sentdex
    December 11, 2020

    do we have a real reason to plot something still coding while we can use a software like Tableau, or Qilk (both have free versions) that are much more nice and explanatory (in my opinion)?

  • sentdex
    December 11, 2020

    Nice material but you sometimes go a bit fast and do many steps at once. It would be great if you explained more step by step exactly what everything means. You also have a tendency to rush things in the end. Else, your videos are awesome. Keep it up man!

  • sentdex
    December 11, 2020

    What does this line do? What is c[:2] ? 

    labels = [c[:2] for c in min_wage_corr.columns]

  • sentdex
    December 11, 2020

    Plot is loaded for only few columns in plt.show(), please suggest

  • sentdex
    December 11, 2020

    As one of the partners in the first law firm I worked for used to ask, "But what does it all _mean_?"

  • sentdex
    December 11, 2020

    I cannot install jupterlab because it says Could not find a version that satisfies the requirement jupiterlab , please help me out to solve this issue

  • sentdex
    December 11, 2020

    So, basically all your tutorials are like, jump and do it.

  • sentdex
    December 11, 2020

    Amazing stuff man!! Learned a lot 😀 Thank you so much!

  • sentdex
    December 11, 2020

    You are so cool, this is like a mega tutorial while learning neat tricks. Real problem solving you got there my dude!

  • sentdex
    December 11, 2020

    plz do a series on seaborn

  • sentdex
    December 11, 2020

    when did you made this series,i was searching alot for this but couldnt find any good material then just saw your series 😀

  • sentdex
    December 11, 2020

    wow, i didnt know about read_html , i used plt.xticks(rotation = 90) in my code but yours is was cooler

  • sentdex
    December 11, 2020

    At what point should I opt for using 'to_pickle(), to_json()' or any of the other local storage methods? Are they only used for extremely large databases or should I stick with 'to_csv()' for the sake of simplicity?

  • sentdex
    December 11, 2020

    Great video, I also recommend to rotate x axis labels:
    ax1.set_xticklabels(labels, rotation=90)

  • sentdex
    December 11, 2020

    2:20, My graph was different, y axis was ploting 1 2 3 4, I guess he kept some sort of index sort from the previous tutorial?

  • sentdex
    December 11, 2020

    Question – At 4:37 you said adD_subplot(111). What if you wanted a 12×12 at the 5th position?

  • sentdex
    December 11, 2020

    for those who are using jupyter notebook: at 2:20, for you to show the graph, you need to just add

    import matplotlib.pyplot as plt
    %matplotlib inline

  • sentdex
    December 11, 2020

    Is that the Not a Flamethrower flamethrower in the background?

  • sentdex
    December 11, 2020

    yeah yeah yeah, Data Science is cool and all but how many weird cup you got?

  • sentdex
    December 11, 2020

    Quick jupyter tip for anyone: You can run commands in the notebook by starting your line with "!". You can even use python variables in the command.

    Example:

    path = 'data/minwage.csv'
    !head {path}

    or

    !pip install matplotlib

  • sentdex
    December 11, 2020

    I don't think that it would be a huge problem to access the website that denies bots in a tutorial as you a not actually causing any harm, but using a different website is a polite thing to do anyway

  • sentdex
    December 11, 2020

    Yes we did it

  • sentdex
    December 11, 2020

    I created a kaggle kernel for videos 3 and 4 of this series https://www.kaggle.com/lookageek/following-sentdex-s-eda-video-series-2, anyone interested do fork it 🙂

Write a comment