Pandas Part 12 - Groupby on IPL Dataset

  Рет қаралды 25,904

CampusX

CampusX

Күн бұрын

Пікірлер: 47
@gurpartapsandhu94
@gurpartapsandhu94 3 жыл бұрын
views dont justify your hardwork and ease with which you teach
@campusx-official
@campusx-official 3 жыл бұрын
Sach me sir :(
@rahulgiri9880
@rahulgiri9880 2 ай бұрын
Superb explanation. Not easy to explain that so simply. Appreciate you for sharing your great wisdom & knowledge.
@shaikusman536
@shaikusman536 Ай бұрын
Awsome explanation Guruji...Respect from bangalore.
@princeking370
@princeking370 2 жыл бұрын
its the best video i have seen on you tube 🔥🔥🔥
@pravinshende.DataScientist
@pravinshende.DataScientist 2 жыл бұрын
by watching your vedios , every time getting new glimses ...and it helping me to enrich my knowledge..for data science!! thank a lots!
@kanakkanak1520
@kanakkanak1520 Жыл бұрын
BEST!! you are the best teacher!
@sujithsaikalakonda4863
@sujithsaikalakonda4863 2 жыл бұрын
Great lecture sir. Lot of respect.
@GaganDeep-mj5hi
@GaganDeep-mj5hi 3 жыл бұрын
Thank you sir for video. You have cleared all the logics and doubts.
@prathmeshdesai4480
@prathmeshdesai4480 Жыл бұрын
Hi Sir, thank you so much for the wonderful explanation. Was very helpful. Also would like to point out a small mistake. While accessing max number of 4's or 6's, there had to be a condition that the score was with single ball, other wise, there are batsman scoring 4 with multiple balls too. Sharing correct code below deli[deli['ball']==1][deli['batsman_runs']==4].groupby('batsman').sum().sort_values('batsman_runs',ascending=False).head()
@rakeshnagarkar8759
@rakeshnagarkar8759 Жыл бұрын
The code which provided by the campusx is correct. if you check the dataset carefully it is clearly mention that for each ball there is a separete batsman_run column(row)
@abhayrana5965
@abhayrana5965 Жыл бұрын
Those students are blessed!
@Darkwolf9280
@Darkwolf9280 23 күн бұрын
13:56 method 2: # Mask to filter only the rows where batsman scored 6 mask = delivery['batsman_runs'] == 6 new_delivery = delivery[mask] # Count the number of times each batsman hit a 4 top_batsmen_sixes = new_delivery['batsman'].value_counts().head() top_batsmen_sixes
@smitrathod2330
@smitrathod2330 2 жыл бұрын
Best lect. Sir hats off 😁👍👍
@life3.088
@life3.088 2 жыл бұрын
accept too much love from us i mean from pakistan student who follow u
@dikshagupta3276
@dikshagupta3276 2 жыл бұрын
On which domain pls suggest .nice explanation
@zkhan2023
@zkhan2023 3 жыл бұрын
The whole video is good but can you please share the last line of code where you have added an index zero. but the rest was good
@truth4indiabyram952
@truth4indiabyram952 3 жыл бұрын
def runs_Scored(batsman_name): VK = data[data['batsman'] == batsman_name] return VK.groupby("bowling_team")["batsman_runs"].sum().sort_values(ascending=False).index[0]
@RSVERMA948
@RSVERMA948 Жыл бұрын
@@truth4indiabyram952 thankxx buddy
@Mjeditz87
@Mjeditz87 Жыл бұрын
Konsa website per career section me jana hain sir cricket me bhi post dekhne ke liye
@talkswithRishabh
@talkswithRishabh 2 жыл бұрын
awesome explanation thanks sir
@Mjeditz87
@Mjeditz87 Жыл бұрын
Sir,Can we use nlargest(5) instead of sort_values() for finding top 5 bats_man
@life3.088
@life3.088 2 жыл бұрын
u r my great sir
@sriyansh3237
@sriyansh3237 8 ай бұрын
Dataset not available. Now how will I continue?
@30yuvrajingale48
@30yuvrajingale48 5 ай бұрын
bro they have provided the link
@sriyansh3237
@sriyansh3237 5 ай бұрын
@@30yuvrajingale48 where?
@30yuvrajingale48
@30yuvrajingale48 4 ай бұрын
keep it up and all the best!!!
@nehasen7313
@nehasen7313 2 ай бұрын
sir i am unable to read the file...it is showing ( UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 10: invalid continuation byte )
@TarunSharma-js8tf
@TarunSharma-js8tf Ай бұрын
Use r'(path)
@khanaslam5722
@khanaslam5722 3 ай бұрын
Sir ap ke file hack hu rahe hai kaggle se download ke hai
@abdulwasay8540
@abdulwasay8540 3 ай бұрын
how to calculate that which team has conceded most runs
@abdulwasay8540
@abdulwasay8540 3 ай бұрын
mask3 = delivery.groupby("bowling_team") mask3["total_runs"].sum().sort_values(ascending = False).head(5) Thank me later.
@rahulstudies1178
@rahulstudies1178 2 жыл бұрын
sir how to find most wickets using this deliveries.csv ?
@sabalniroula26
@sabalniroula26 2 жыл бұрын
data = pd.read_csv("deliveries.csv") mask1 = data['dismissal_kind'] == 'caught' mask2 = data['dismissal_kind'] == 'bowled' mask3 = data['dismissal_kind'] == 'caught and bowled' mask4 = data['dismissal_kind'] == 'run out' mask5 = data['dismissal_kind'] == 'lbw' mask6 = data['dismissal_kind'] == 'stumped' mask7 = data['dismissal_kind'] == 'retired hurt' mask8 = data['dismissal_kind'] == 'hit wicket' mask9 = data['dismissal_kind'] == 'obstructing the field' d=data.groupby('dismissal_kind') d= data[mask1 | mask2 | mask3 | mask4 | mask5 | mask6 | mask7 | mask8 | mask9 ] d['bowler'].value_counts().sort_values(ascending=False).head(5)
@Apurvadidisorts
@Apurvadidisorts 2 ай бұрын
Unable to run the csv file after so many attempts. Please give me solution.
@Apurvadidisorts
@Apurvadidisorts 2 ай бұрын
Its showing 'UnicodeDecodeError '
@surajmamidwar9556
@surajmamidwar9556 Жыл бұрын
please share the code for maximum century from dataframe
@ahmadhussain6615
@ahmadhussain6615 6 ай бұрын
total=data.groupby(['batsman','match_id'])['batsman_runs'].sum().reset_index() mask2=total['batsman_runs']>=50 fifty=total[mask2] fifty.groupby('batsman').count().sort_values('batsman_runs',ascending=False)
@killerelite7841
@killerelite7841 7 ай бұрын
runs.get_group('V Kohli').shape - this line doesn't represent ball played ball V Kohli but we can get the balls by - runs['ball'].sum() or runs.get_group('V Kohli')['ball'].sum() . It gives sum of the ball's played by the players. If i am wrong plz comment.
@amarmallick79
@amarmallick79 7 ай бұрын
is the dataset available?
@animeshbasak490
@animeshbasak490 Жыл бұрын
def maxscored(batsman_name): vk=df[df['batsman']==batsman_name] return vk.groupby('bowling_team')['batsman_runs'].sum().sort_values(ascending=False).index[0] sir can you please tell me why I'm getting error on index[0]
@prathmeshdesai4480
@prathmeshdesai4480 Жыл бұрын
This code is correct. I ran the same code its working. check if you are using the correct data(csv file) or copy paste the entire error message in chatgpt. Hope this helps
@MRAgundli
@MRAgundli 6 ай бұрын
I have same problem bro , did you get tackle ?
@yashkumariitdelhi6363
@yashkumariitdelhi6363 5 ай бұрын
@@MRAgundli just remove the commas from the variable batsman_name
@rockeveryday5823
@rockeveryday5823 6 ай бұрын
df[df['batsman_runs']==4].value_counts('batsman').head()
Pandas Part 13 - The isin() function
13:53
CampusX
Рет қаралды 20 М.
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 40 МЛН
Pandas Part 11- The Groupby() function
12:59
CampusX
Рет қаралды 35 М.
Complete Machine Learning In 6 Hours| Krish Naik
6:37:52
Krish Naik
Рет қаралды 964 М.
Solving real world data science tasks with Python Pandas!
1:26:07
Keith Galli
Рет қаралды 1,5 МЛН
Handling Missing Values in Pandas Dataframe | GeeksforGeeks
22:17
GeeksforGeeks
Рет қаралды 134 М.
GEOMETRIC DEEP LEARNING BLUEPRINT
3:33:23
Machine Learning Street Talk
Рет қаралды 241 М.
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН