Matplotlib Tutorial (Part 7): Scatter Plots

  Рет қаралды 179,813

Corey Schafer

Corey Schafer

Күн бұрын

Пікірлер: 121
@coreyms
@coreyms 5 жыл бұрын
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 plot time series data. 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: brilliant.org/cms
@caiooliveira3818
@caiooliveira3818 5 жыл бұрын
It would be interesting to have a video about boxplots and outliers.
@Sabre00
@Sabre00 5 жыл бұрын
Just what I've been waiting for!!!!! Time series plots!!!!
@SHUBHITTALUSBIS
@SHUBHITTALUSBIS 5 жыл бұрын
So sir you will not tell when you will start with numpy and pandas?
@coreyms
@coreyms 5 жыл бұрын
I've already started working on those, but it takes a long time to complete a series. I'm currently going through a move, so it will be some time unless I get moved into my new place and get my office set up. It will likely be a month until I've made good progress on the numpy and pandas series.
@vivekjoshi722
@vivekjoshi722 3 жыл бұрын
@@coreyms i have search for numpy in a chaneel but there no vedios, when i expect numpy tutorials
@mehmetkazanc5855
@mehmetkazanc5855 4 жыл бұрын
One of the best Python instructor in the KZbin.. !!
@programmer4833
@programmer4833 4 жыл бұрын
the best
@sagarreddy7461
@sagarreddy7461 5 жыл бұрын
Great content Mr.corey. can you make series of tutorials on pandas n numpy modules. That will helpful for alot of people. Love n respect from INDIA..
@sanjj_1
@sanjj_1 4 жыл бұрын
Dude I cannot believe you offer this for free. I swear I will donate as soon as I am capable of it, this helps so much.
@LeonAlexGuitar
@LeonAlexGuitar 3 жыл бұрын
Thanks Corey, this was a great help for my thesis!
@tanmayagarwal8513
@tanmayagarwal8513 4 жыл бұрын
One day I am sure your videos will also be in the list of Top trending video dataset that you have pulled out. Amazing explanation for each and everything! Thank you so much!
@dhananjaykansal8097
@dhananjaykansal8097 5 жыл бұрын
Lovelyyyyyy. Too good once more. You’re doing a very noble job sir. God Bless! Love from India....
@balabunat
@balabunat 5 жыл бұрын
One more useful video. For me, as for beginning data scientist, it's VERY useful! Thank you so much 👍
@HhhHhh-et5yk
@HhhHhh-et5yk 4 жыл бұрын
Soo true!☄
@akosasuke5128
@akosasuke5128 2 жыл бұрын
I've been binge-watching your videos for a while now, they are very rich and concise. It gives a beginner the right foundational introduction into data visualization. I'm glad I found your videos, I can't wait to see you work with more more sophisticated plots
@kopilkaiser8991
@kopilkaiser8991 Жыл бұрын
Your videos helped me to learn more than I had learnt on my actual classes on Data Science. You are absolutely an awesome teached and have the capability to teach ans convey difficult knowledge in an easy and helpful manner. Thank you so much for making these videos. I am going to continue learning by watching the rest of your videos on this series.
@p3000g1
@p3000g1 2 жыл бұрын
Hands down the best Python tutorial series on the internet
@bisratgetachew8373
@bisratgetachew8373 2 жыл бұрын
You are such a great teacher. I can not thank you enough. From Ethiopia 🇪🇹
@smellymomo
@smellymomo 5 ай бұрын
Great video, Corey! I'm currently doing an Astronomy-related project which involves using a scatter plot, and this was a very helpful intro for that. Thanks.
@franciscorivas4036
@franciscorivas4036 4 жыл бұрын
Thank you Corey. You're such a great teacher. Greetings from Ecuador
@jimothybikael
@jimothybikael 4 жыл бұрын
INSTANT SUB!!!! Tysm, my man. Exactly what I needed. Concise but thorough :)
@tugrulpinar16
@tugrulpinar16 3 жыл бұрын
I'm here after finishing Corey's pandas tutorial. Thank you for these amazing series!
@junealexissantos4341
@junealexissantos4341 3 жыл бұрын
Thank you so much sir. As a newbie, I find these videos so easy to understand. Thank you again. Hope you continue to make videos like this.
@allena794
@allena794 5 жыл бұрын
Thanks, Corey. I have learned a lot from your video.
@DominicNjoroge-y6n
@DominicNjoroge-y6n 8 ай бұрын
Thank you so much! Exactly what I needed.
@anushag6906
@anushag6906 4 жыл бұрын
Great series, one more humble request - can you do a series on 3D plots.
@itsjose666
@itsjose666 4 жыл бұрын
Watching these videos has been immensely helpful. Thank you very much for sharing your knowledge!
@lalu225
@lalu225 5 жыл бұрын
Proper data analytics, great tutorial!
@zane003
@zane003 Жыл бұрын
15:00 didn't expect old town road to show up here, totally makes sense
@rogerwilcoshirley2270
@rogerwilcoshirley2270 3 жыл бұрын
Thanks Corey, you do a great job with your videos, nothing identifiably spectacular, nonetheless effective and enjoyable.
@danielflorea3001
@danielflorea3001 2 жыл бұрын
Excellent content, simple explanations, really easy to follow. Great work
@fredwooten14
@fredwooten14 5 жыл бұрын
Good stuff Corey appreciate the information!!!
@cherngliu8803
@cherngliu8803 4 жыл бұрын
Thank you Schafer from Taiwan
@tymothylim6550
@tymothylim6550 3 жыл бұрын
Thank you Corey for this video! It was very well planned in the sense that it transitioned well from basic to more intermediate stuff (like cmap!)
@SomeGuyInSandy
@SomeGuyInSandy 5 жыл бұрын
Excellent series!
@the-ghost-in-the-machine1108
@the-ghost-in-the-machine1108 Жыл бұрын
great work!
@gokulsreekumar4371
@gokulsreekumar4371 4 жыл бұрын
Gold Mine 👌
@gamingandtechexperto2003
@gamingandtechexperto2003 Ай бұрын
please make seaborn tutorial too
@TerboBlitz
@TerboBlitz 5 жыл бұрын
Very clear. Well-done!
@meysamsalehi7706
@meysamsalehi7706 3 жыл бұрын
Thank you. it was very useful for me.
@rickhehe
@rickhehe 3 жыл бұрын
I love that outlier:)
@thecatsister3040
@thecatsister3040 3 жыл бұрын
Thank you for this video.
@adityarathore9479
@adityarathore9479 4 жыл бұрын
You are a saviour man!
@sharvils4270
@sharvils4270 4 жыл бұрын
Old Town Road💖💖💖😂
@maiarob2
@maiarob2 4 жыл бұрын
Thank you very much for the video!
@roshanican504
@roshanican504 3 жыл бұрын
Thank you so much for everything
@ironpolux
@ironpolux 3 жыл бұрын
Thanks for the vid :D. YT algo please love this guy
@wobius
@wobius 5 жыл бұрын
you could also look into the bokeh package. I think that would also make a great series, since it runs faster than matplotlib, but with a similar syntax
@coreyms
@coreyms 5 жыл бұрын
Yes, I'll be covering Bokeh in a future series
@wobius
@wobius 5 жыл бұрын
@@coreyms Thats great! Bokeh also has an easy interface for interactive plots, hovertools and capabilities to save html files, which are nice to present data as dashboard applications. Can't wait to see your series. :)
@k1mfor
@k1mfor 5 жыл бұрын
@@coreyms Please consider Plotly and/or Dash as well!
@youtubecommenter5122
@youtubecommenter5122 4 жыл бұрын
All the pointless to watch scatterplot videos for my KNN assignment question. Thank God for this video
@RozanMhrzn
@RozanMhrzn 3 жыл бұрын
Thank you so much for the video !!!
@lewistaylor4620
@lewistaylor4620 2 жыл бұрын
Thanks to you dude. Ive managed to keep my hair on my head
@tehyonglip9203
@tehyonglip9203 3 жыл бұрын
Please make a video on curve fitting and regression lines
@nicholasmaloof8378
@nicholasmaloof8378 5 жыл бұрын
I know this has been posted a lot, but a pandas series (as well as some of the other popular data science libraries) would be awesome
@nicholasmaloof8378
@nicholasmaloof8378 5 жыл бұрын
Also - super excited for that KZbin API video :)
@Sripooja.Mahavadi
@Sripooja.Mahavadi 5 жыл бұрын
Great video thanks a lot!!!
@FabioWilliamOliveira
@FabioWilliamOliveira Жыл бұрын
It help me a lot
@ahmedhassanahmedhassan6495
@ahmedhassanahmedhassan6495 5 жыл бұрын
thank you :)
@budoray
@budoray 5 жыл бұрын
Nicely done. How about covering the plot_date() and including color gradients?
@HiroshiT34
@HiroshiT34 3 жыл бұрын
These data show how self-reinforcing KZbin likely is. I am sure that both views and likes are factored into the algorithm. So once you start to get likes and views the algorithm will highlight you meaning you get more likes and views leading to a self-fulfilling prophecy. It is not that the video is higher quality or even more popular, but that KZbin makes the content so through reinforcement.
@abhinav9561
@abhinav9561 4 жыл бұрын
Thanks man!!
@davidrainder6620
@davidrainder6620 27 күн бұрын
gracias
@omareldamsheety
@omareldamsheety 4 жыл бұрын
Thank you
@anonymous_ghost_123
@anonymous_ghost_123 2 ай бұрын
Great...
@tomaszkoodziejczyk7730
@tomaszkoodziejczyk7730 5 жыл бұрын
Awesome series! Can we use Log scale for the colorbar as well?
@TopicalAuthority
@TopicalAuthority 4 жыл бұрын
Maybe it is updated but when I use the start code, it says "'tuple' object is not callable".
@SuperLangz
@SuperLangz 5 жыл бұрын
Interesting outlier
@fun_facts168
@fun_facts168 3 жыл бұрын
Hello Corey, Thank you very much for this great series. Can you please tell me how slicing works in scatter plot?
@parthrawri3001
@parthrawri3001 4 жыл бұрын
Green is Corey’s favourite color.
@lord_nn
@lord_nn 5 жыл бұрын
Thanks for the series. I really enjoyed all the videos. A question I have is what libraries would you use to allow user interactions.
@coreyms
@coreyms 5 жыл бұрын
A popular library for interactive plots is Bokeh. I'll be doing a series on that in the near future as well.
@ManishKumar-sw3cn
@ManishKumar-sw3cn 5 жыл бұрын
Thanks corey!! how to verify the plotted points are exactly plotted.
@VictorCaldo
@VictorCaldo 5 жыл бұрын
cbar = plt.colorbar(orientation='horizontal') in case you want it to be horizontal
@mcmormus
@mcmormus 3 жыл бұрын
Is there a way to invert cmap='summer' so that the ratio changes from red to green?
@FallinPython
@FallinPython 3 жыл бұрын
@mcmormus Yes, there is. You only need to add “_r” in the end of your chosen colormap. example: Using “jet” colormap cmap = “jet” cmap = “jet_r”
@meetpanchal4908
@meetpanchal4908 2 жыл бұрын
Query here !! been doing as you instructed but while plotting on Y-axis it's showing 1,2,3,4 rather then orignal value. How to resolve it
@jordancachiaras807
@jordancachiaras807 2 жыл бұрын
How would you plot the x y scatter as well as say a polynomial line that is the best fit line for the data points?
@interprimus1134
@interprimus1134 4 жыл бұрын
question, you import both matplotlib and pandas, but pandas already contains the matplotlib “inside”, how to use all methods matpotlib without it import using just pandas?) e.g. style thanks
@mrdrbernd
@mrdrbernd 5 жыл бұрын
The series is great! - but one question: is it possible to color code the density of points in a certain area, e.g. more dense points/ same points appear darker than less dense points?
@idrisaderinto9648
@idrisaderinto9648 4 жыл бұрын
the outlier rode till it couldn't no more
@aqclaudio
@aqclaudio 5 жыл бұрын
How its possible set legend to my data at scatter plot? ie male and female are groups inside this graph visualization
@bhargav1811
@bhargav1811 3 жыл бұрын
How u get all this data corey? By the way your video are very nice!!!
@avg_user-dd2yb
@avg_user-dd2yb 2 жыл бұрын
Stackoverflow
@ushnakhan198
@ushnakhan198 3 жыл бұрын
I have a project coming, so can anybody tell me where should I get data from? to manipulate, analyze and visualize like he got data of top trending youtube videos so where did he get from??
@bikashacharaya47
@bikashacharaya47 4 жыл бұрын
while using plt.colorbar(), it return runtime error : No mappable was found to use for colorbar creation. First define a mappable such as an image (with imshow) or a contour set (with contourf).
@rasanbhangu
@rasanbhangu 4 жыл бұрын
Have you tried copy pasting, final code given by Corey on github?
@babaabba9348
@babaabba9348 3 жыл бұрын
hi what if x has 2 attributes and y is the label how can i plot this please
@N1KLAZ96
@N1KLAZ96 4 жыл бұрын
Great Video! Can you tell me how I can display images instead of points in the plot?
@azizaza8287
@azizaza8287 4 жыл бұрын
using imshow() method for data with images instead of show() method
@ambreeshkhurana1115
@ambreeshkhurana1115 5 жыл бұрын
First of all, very nice video. I just have a question. I want to plot contours on a scatterplot, let's say that include 70%,90%, and 95% of all the points. Is there a way to do that. I couldn't find anything. I will appreciate any help. Thanks
@pinopino1385
@pinopino1385 Жыл бұрын
How can I plot two datasets within the same scatterplot? I don’t know how to define the y & x axis…
@timstark6744
@timstark6744 5 жыл бұрын
Thanks Corey, great videos! Looking forward to rest of the series! I'm trying to do something like Hans Rosling's video with plotting some data points over a 10 or 20 year period to perform analysis and to better visualize my data. I see a library called plotly_express but for now I'm just going to use a more organic approach with matplotlib. Question I have is are you planning on showing how to integrate control of the event attributes to make the data more interactive? I'm thinking of taking a scatter plot and then popping up attribute information when the cursor is over a data point (assume we use axes_enter/leave_event or figure_enter/leave_event)?? Pardon me if you already covered this as I just started watching yesterday and am kind catching up still. Other graph type I'm interested in is the bar_polar to display several key metrics for a company or project, to better visualize overall performance at a glance. I really think data analytics and data visualization is hot right now, and appreciate your timing with this video series. It would be great to see this series as a foundational component and then another intermediate or more advanced series to address a variety of use cases and how we could leverage these skills we are learning here, and tweak them slightly to create even greater visualizations or interactive data analysis tools.
@coreyms
@coreyms 5 жыл бұрын
Hey there. I'll be covering more interactive tools in the future, but not in this series. A popular library for that is Bokeh. I'll likely do a Bokeh series after the Pandas and Numpy series.
@therealrk
@therealrk 5 жыл бұрын
Please sir help me I am scrapping a web and there is JavaScript on it for infinite scrolling page and I need to scrape data using requests_html but render is not working Can you provide more tutorials on it
@namegoogle1877
@namegoogle1877 5 жыл бұрын
Hi Corey, how to set label to each point on scatter plot?
@nandalal-dev6095
@nandalal-dev6095 4 жыл бұрын
one doubt on this video the data is about youtube trend's likes,viewcount and ratio then how did you get dislike ratio???
@SoftwareEngineering226
@SoftwareEngineering226 Жыл бұрын
Data which you have used is not in the description
@PattyBreath
@PattyBreath 5 жыл бұрын
Thanks for this Corey, really useful series. Does anyone know how you can force the z axis (like/dislike ratio plotted by colour map) limits to be between 0 and 1?
@azizaza8287
@azizaza8287 4 жыл бұрын
you can do one thing , assume the highest ratio to be = 1 and lower ratio to be = zero and then use the map() function to map all the csv ratio values column cheers !
@HhhHhh-et5yk
@HhhHhh-et5yk 4 жыл бұрын
Using pandas , divide the ratio column by 100 and replace it to orginal dataframe. Then Change vmin =0 , vmax = 1 in plt.scatter(df.view_counts, df.likes, c = data.ratio , vmin ,vmax). Otherwise directly divide by 100 like shown below. Plt.scatter(df.view_counts, df.likes, df.ratio/100 , ...........) Cheers!♥️☄
@letzgoletzgoletzgo
@letzgoletzgoletzgo 4 жыл бұрын
getting a value error on the data @corey schafer could you help me out here.
@fernandohood5542
@fernandohood5542 4 жыл бұрын
How would I do a scatter plot in real time?
@jonathanstudentkit
@jonathanstudentkit 4 жыл бұрын
careful: correlation only models a linear relationship. The correlation may be zero even if the variables are stochastically dependent!!!
@SHUBHITTALUSBIS
@SHUBHITTALUSBIS 5 жыл бұрын
Video on boxplots?
@jeffery_tang
@jeffery_tang 2 жыл бұрын
missed opportunity to make the like/dislike ratio colormap to be green to red
@sarbazkhurasani
@sarbazkhurasani 4 жыл бұрын
again same day (16 jun) but 1 year later :)) date: 16. 6 . 2020
@alenjose3903
@alenjose3903 4 жыл бұрын
3 months and 2 days from the same day as last year.
@simon_ammi
@simon_ammi 3 жыл бұрын
At this point in time, I'm trying to figure out how to plot a regression line on my scatter plot, anyone? Nice video though, thanks.
@smellypunks
@smellypunks 4 жыл бұрын
Would have been good to have seen one colour per series of data.
@munish259272
@munish259272 3 жыл бұрын
00:02
@danielalegriasallo5551
@danielalegriasallo5551 3 жыл бұрын
"I'm gonna take my horse to the old town road"
@letzgoletzgoletzgo
@letzgoletzgoletzgo 4 жыл бұрын
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
@Milo-f6t
@Milo-f6t 7 күн бұрын
No longer works!? Python is such a volatile mess...
@alimovasati4470
@alimovasati4470 4 жыл бұрын
Honestly I am really disappointed you didn't talk about regression line!
@milleretguillaume9374
@milleretguillaume9374 4 жыл бұрын
this look like R shiny content
@Arthurk346
@Arthurk346 4 жыл бұрын
watching this in 2020-05-31 aint that cool?..
@AhmedSharaf800
@AhmedSharaf800 2 жыл бұрын
Anyone that got this warning "MatplotlibDeprecationWarning: Auto-removal of grids by pcolor() and pcolormesh() is deprecated since 3.5 and will be removed two minor releases later; please call grid(False) first." Use plt.rcParams['axes.grid'] = False
Matplotlib Tutorial (Part 8): Plotting Time Series Data
17:09
Corey Schafer
Рет қаралды 186 М.
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 20 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 165 МЛН
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 93 МЛН
Matplotlib Tutorial (Part 2): Bar Charts and Analyzing Data from CSVs
34:26
Matplotlib Tutorial (Part 6): Histograms
16:36
Corey Schafer
Рет қаралды 189 М.
Matplotlib Tutorial (Part 10): Subplots
21:22
Corey Schafer
Рет қаралды 244 М.
Matplotlib Tutorial (Part 1): Creating and Customizing Our First Plots
35:01
Seaborn Tutorial : Seaborn Full Course
59:34
Derek Banas
Рет қаралды 199 М.
Matplotlib Crash Course
1:31:41
freeCodeCamp.org
Рет қаралды 328 М.
Learn Data Visualization with Matplotlib in Python: A Beginner’s Guide
32:29
Seaborn Is The Easier Matplotlib
22:39
NeuralNine
Рет қаралды 176 М.
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 20 МЛН