Seaborn swarmplot | What is a swarm plot and how do you make a swarmplot with Python seaborn?

  Рет қаралды 9,409

Kimberly Fessel

Kimberly Fessel

Күн бұрын

Пікірлер: 15
@MohamedSayed-ty3wn
@MohamedSayed-ty3wn 4 жыл бұрын
Thanks very much for this excellent tutorial, the best thing about it is that you go deep explaining each line of code you write unlike most tutorials I found
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
Fantastic -- glad you enjoyed it!
@girrra1233
@girrra1233 2 жыл бұрын
@@KimberlyFessel how can i change size of plots together ? if i use plt.figure(figsize=(20, 15)) its change only first plot if i use it before swarmplot too then its replace violine plot
@alexngo9848
@alexngo9848 4 жыл бұрын
Very good explanation Kim, looking for more of your tutorials on Python. Keep up the good work !!!
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
Glad you enjoyed it -- will do!
@prasadchimalwar3951
@prasadchimalwar3951 3 жыл бұрын
Wow! Thanks for this! Very nicely explained.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Thank you! Glad you enjoyed it. 😄
@manoelflavioleal1934
@manoelflavioleal1934 4 жыл бұрын
Thanks for the explanation.
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
You are very welcome!
@samuelcockey9294
@samuelcockey9294 3 жыл бұрын
Hi, thanks for the informative video! I have a question about swarm plots. Do you know how to add a line representing the mean on top of the swarm plot? For example, at 4:21 in your video, could one add a horizontal line at the mean horsepower for each origin-cylinder combination? Thanks!
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Interesting question! Don't think the swarmplot has anything built-in to handle this. But you could potentially plot a boxplot or maybe even a barplot on the same figure as your swarmplot. That would show you the median, 25th, and 75th percentiles. You could alternatively plot individual horizontal lines using axhline, but it gets a little tricky to get the right y positions (through a pandas groupby?) and to also put those in the right locations (xmin and xmax in axhline require scaled positional values ranging between 0 and 1).
@jantonisito
@jantonisito 3 жыл бұрын
Thank you for super useful and detailed tutorial. One question on swarmplot - you begin from a set of natural number and you make swarmplot look like histogram with bin width = 1. But how does it work when you are dealing with data points that are float type - is there some/same type of binning involved?
@sreenathsj4064
@sreenathsj4064 3 жыл бұрын
Absolutely excellent 👏thank u
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
You're very welcome -- glad you enjoyed!
@csswatheshson1563
@csswatheshson1563 Жыл бұрын
Helpful❤
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
EdgeAI - DeepSeek-R1 on Raspberry Pi
18:20
Thommas Kevin
Рет қаралды 75
But what is a neural network? | Deep learning chapter 1
18:40
3Blue1Brown
Рет қаралды 18 МЛН
Using VS Code with Python for Data Science / Data Analysis - P.5
28:03
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН