Python Pandas Tutorial 7. Group By (Split Apply Combine)

Python Pandas Tutorial 7. Group By (Split Apply Combine)

codebasics

7 лет назад

334,018 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Deepalakshmi Hariharan
Deepalakshmi Hariharan - 13.10.2023 12:33

Very Useful .Thank you so much

Ответить
Mr.Legand life studio
Mr.Legand life studio - 11.10.2023 18:51

g.mean() shows error. Instead we can use g[['temperature','windspeed']].mean()

Ответить
JustPython
JustPython - 06.08.2023 19:11

Nice video

Ответить
Vish G.
Vish G. - 28.07.2023 21:40

far better than college lectures, excellent teaching method and easiest way to learn the topics, man you are gem. I've followed you since when I'd watch your data basic roadmap, now I also wanna become data analytics and I followed your roadmap and it's far more better than other classes. You've helped so many youth's who wanted to become data analytics.
Thank you sir once again. appreciate your work. keep goin'

Ответить
Jaskaran Singh
Jaskaran Singh - 11.07.2023 15:38

This is great.

Ответить
Saurabh Dwivedy
Saurabh Dwivedy - 07.07.2023 11:04

To get different kinds of stats on different columns over the groupby Object (g) we can use like so - g.aggregate({'temperature':'mean', 'windspeed':'max'}) --- will give average temperatures and max windspeed for the cities in the group by object (g)

Ответить
Saurabh Dwivedy
Saurabh Dwivedy - 07.07.2023 10:42

g.mean() threw a TypeError: Could not convert 01-01-201701-02-201701-03-201701-04-2017 to numeric for me. g.describe() however worked fine. Is there a way to skip the non-numeric columns from g.mean()

Ответить
Ifeanyi Okonkwo
Ifeanyi Okonkwo - 11.06.2023 04:33

U explained it properly. Thanks

Ответить
Biggy Liggy
Biggy Liggy - 03.05.2023 15:57

I always had trouble understaing 'group by' and that's not uncommon,
No one has explained it better than you,
that pictorial representation explains a lot

Using pictures to make the concept clear is something what a really good data scientist and a really good teacher would do

Ответить
Ruttanan Rongsawad
Ruttanan Rongsawad - 17.04.2023 07:03

You are the first tutor I came across who manage to do the visualization of the groupby process!

Ответить
Naman Sharma
Naman Sharma - 18.01.2023 14:47

g.max() is giving max temp of cities............why ??????????

Ответить
Eliezer Gutierrez
Eliezer Gutierrez - 12.01.2023 02:30

Nice, thanks for share this!... you rock!

Ответить
subee128
subee128 - 26.12.2022 08:12

Thanks

Ответить
Salman Sadi
Salman Sadi - 09.12.2022 16:33

Great Explanation.

Ответить
jayshree donga
jayshree donga - 06.12.2022 15:05

thanks sir

Ответить
jayshree donga
jayshree donga - 06.12.2022 14:12

Thanks sir

Ответить
Sai Kishor
Sai Kishor - 26.11.2022 09:14

clear explanation thanks.

Ответить
Sweet Sour Travel
Sweet Sour Travel - 20.11.2022 04:37

Nice 👍

Ответить
A K
A K - 11.11.2022 19:30

Jupiter notbook 😂

Ответить
jith1
jith1 - 27.09.2022 01:33

Very helpful! Couldn’t find it better anywhere else. Thanks!

Ответить
Kavana Kundapur
Kavana Kundapur - 18.09.2022 02:12

I amgetting and error when i do df_grp = df.groupby('ProviderSpecialty')
df_grp.get_group(['ProviderSpecialty'])

Ответить
rashmi dutta
rashmi dutta - 04.09.2022 17:28

i have been using pandas , but never knew this about group by

Ответить
Ranjana Priya
Ranjana Priya - 18.08.2022 00:52

Really Your teaching method is so excellant

Ответить
Rajesh pro
Rajesh pro - 17.08.2022 11:00

thank you sir

Ответить
Neelam Mishra
Neelam Mishra - 29.07.2022 04:10

Thank you so much for making it so logical and clear explanation. Your knowledge is precious to people like me. Thanks a ton

Ответить
Dhanraj Nikam
Dhanraj Nikam - 19.07.2022 09:29

when i am trying to print this output in csv format its giving a error called "'DataFrameGroupBy' object has no attribute 'to_csv' ples help me with how i can print this output in csv format

Ответить
geoffrey laforest
geoffrey laforest - 10.07.2022 22:59

Exactly what I was searching for, thx a lot !

Ответить
Abigail Eileen Marx
Abigail Eileen Marx - 08.07.2022 01:21

This is a super helpful video. What if I want to get the average windspeed on days in Mumbai hotter than 70? I am having trouble returning the windspeed value based on multiple criteria. Can someone show me example code on how I would get that?

Ответить
Debatra Das
Debatra Das - 06.07.2022 12:04

thank you so much

Ответить
Jairaj Sahgal
Jairaj Sahgal - 05.07.2022 10:23

I never understood groupby and it is used a lot in data analytics.
Thank you for the explanation.

Ответить
Joao Rinaldo
Joao Rinaldo - 05.07.2022 05:09

TE AMO MUITO MANO, NAMORAL VOCE SALVOU A MINHA GRADUAÇÃO

Ответить
Joao Rinaldo
Joao Rinaldo - 05.07.2022 03:48

i love you so much, huggies from brazil <3

Ответить
Rajveer
Rajveer - 04.07.2022 21:10

Yes,I am interested...

Ответить
Hemant Bodi
Hemant Bodi - 19.06.2022 08:23

Groupby explained in such detail. Thanks for sharing this!

Ответить
Tanya
Tanya - 05.06.2022 18:27

It is very well explained!!! Thx a lot for the video!

Ответить
zahid ullah
zahid ullah - 05.06.2022 14:59

hats off to you Sir...

Ответить
house of fahad
house of fahad - 04.06.2022 19:26

man you are the best!
even after paying good amount of fees,
one can't expect this kind of teaching.

Ответить
Himanshu Sharma
Himanshu Sharma - 23.05.2022 09:51

You just explained it brilliantly 🙏🙏🙏

Ответить
Subham Saha
Subham Saha - 24.04.2022 11:09

exceptional, maja aa gya. I was just brushing up and literally this is the best course because I am doing it in 2X and your voice and speed both highly correlate to give a best course. Superb.

Ответить
Aruj
Aruj - 21.04.2022 19:53

I'm trying to plot the data but I'm unable to the results as my plotting is between day and Wind speed and not between temperature and wind speed how to correct it can anyone help me with it???

Ответить
Abhay Chourasiya
Abhay Chourasiya - 22.02.2022 19:33

Please Add Some Problems andd answer to enhance your teaching and understanding

Ответить
rakesh deo
rakesh deo - 15.02.2022 10:42

Really very good presentation, keep it up sir. Rakesh Deo from Kathmandu, Nepal.

Ответить
Komala Shashidhar
Komala Shashidhar - 05.02.2022 20:15

Sir can you please do vedio on how a group by output can we convert into a dataset .

Ответить
Mukesh Ghritlahre
Mukesh Ghritlahre - 29.01.2022 08:55

Thank you very much for these very useful and "easy to learn" tutorials!!

Ответить
jayanti prasad
jayanti prasad - 27.01.2022 16:18

simply outstanding !

Ответить
Ruhan Negi
Ruhan Negi - 23.01.2022 10:14

This is the first time I have seen in any channel. This make shim different than others.. keep going.

Ответить
Samudra Gupta
Samudra Gupta - 21.01.2022 07:56

Hi Dhaval, what if we pass two features let's say .groupby(['city','day']) so then how would be the representation please?

Ответить
Sudip Bala
Sudip Bala - 14.01.2022 09:16

you are very good teacher.

Ответить
jahan gagan
jahan gagan - 29.12.2021 16:02

How it has decided data for event column when max() is applied.

Ответить