31:20 i dont think nitish, you cleared all concepts and the answer would be : result = imdb.groupby('Genre')[['Series_Title', 'IMDB_Rating']].sum().sort_values(by='IMDB_Rating',ascending=False) this give Series_title concatenated to avoid i did this: imdb[imdb['Genre'].isin(result.index)][['Genre','Series_Title', 'IMDB_Rating']].head() this might bit complicated: isin(result.index): This checks whether each element in the "Genre" column is present in the index
If you can see closely to your data for e.g. 3.540997e+10 its e raise to 10 i.e. 3.540997×10 ^10 and other values from 5th rank are e+09 that's why they are smaller compared to e+10.
18:44 Hi nitish correct me if im wrong here.. film 300 director is Zack Snyder or Abhishek Chubey, i mean check whole row its completly irrelevant. i think you should revise it. ⚠⚠
hello, good morning sir and campusx team, I want to ask that if I am not a paid student , then can I access that python practice question set and interview question set ? if not , then what if I paid for only on youtube not on campusx website, in this case can I get that question set ?
imdb.groupby('Genre').max().sort_values(["IMDB_Rating"], ascending = False) i used this query to find highest rated movies of each genre so is it right or not
Thanks sir for giving a best contant❤❤❤❤
@14:46 genres.sum() is also including categorical columns. is there some update ?
inside the sum(numeric_only=True)
Guru jii..❤
Awesome content on groupby function
Maja aa gya Guru ji❤
Great work
sir ji
You are the best
Groupby works with any data type.
Categorical columns provide significant performance and memory advantages for groupby operations.
Bhut badhiya bhai ji 🎉
Thank you sir 😊
31:20
i dont think nitish, you cleared all concepts and the answer would be :
result = imdb.groupby('Genre')[['Series_Title', 'IMDB_Rating']].sum().sort_values(by='IMDB_Rating',ascending=False)
this give Series_title concatenated to avoid i did this:
imdb[imdb['Genre'].isin(result.index)][['Genre','Series_Title', 'IMDB_Rating']].head()
this might bit complicated: isin(result.index): This checks whether each element in the "Genre" column is present in the index
pass numeric_only=True inside sum() method
df = movies.groupby(['Genre'])['IMDB_Rating'].max().reset_index()
result = movies.merge(df, on=['Genre', 'IMDB_Rating'], how='inner')[['Genre','Series_Title','IMDB_Rating']].sort_values(by = 'Genre')
22:53 If you can see closely to your sorted data, you can see the sort value methods is not working, hence this are not top genres
If you can see closely to your data for e.g. 3.540997e+10 its e raise to 10 i.e. 3.540997×10 ^10 and other values from 5th rank are e+09 that's why they are smaller compared to e+10.
thank you sir
THANKS SIR
18:44 Hi nitish correct me if im wrong here.. film 300 director is Zack Snyder or Abhishek Chubey, i mean check whole row its completly irrelevant. i think you should revise it. ⚠⚠
You're interpreting it wrong. The result is showing according specific Genres which is the minimum value in each column.
great
'DataFrame' object has no attribute 'append'. How can I do this?
df=pd.DataFrame(columns=imdb.columns)
for group,data in genre:
max_rating_data = data[data['IMDB_Rating'] == data['IMDB_Rating'].max()]
df = pd.concat([df, max_rating_data])
Plz provide me solutiion of this seesion task plz
Can i purchase it now.???
hello, good morning sir and campusx team, I want to ask that if I am not a paid student , then can I access that python practice question set and interview question set ? if not , then what if I paid for only on youtube not on campusx website, in this case can I get that question set ?
Pay on the website to access it
@@campusx-official ok. Thank you
where is the csv file ??? please tell me
IN THE DESCRIPTION
when the new batch will starts....
Abbey yeh wala toh khtm hone de
Sir I want to purchase the course
Amazing Session sir, Im from pakistan and im watching your videos , can i buy your course from pakistan?
Payment issue ata bro, try kia ni hota 🤧
imdb.groupby('Genre').max().sort_values(["IMDB_Rating"], ascending = False) i used this query to find highest rated movies of each genre so is it right or not
this is wrong max() will return row wise implementation
Thank you Sir
thank you sir