Solving Python Data Analysis Interview Questions - Google

Опубликовано: 16 Ноябрь 2023
на канале: MaKuData
68
13

In this series, I will be solving python data analysis interview questions in Stratascratch. In this particular video, I'm solving Google's interview question.

If you have any questions or feedback regarding this content, please let me know in the comments or you can contact me directly via email: makunadata@gmail.com

My solution to the mentioned question is:
Activity Rank:
df = google_gmail_emails[['id', 'from_user']]
df = df.groupby('from_user', as_index = False).count()
df = df.sort_values(['id', 'from_user'], ascending = [False, True])
df['rank'] = df['id'].rank(method = 'first', ascending = False)
df

Try out Stratascratch: https://stratascratch.com/?via=marius


На этой странице сайта вы можете посмотреть видео онлайн Solving Python Data Analysis Interview Questions - Google длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь MaKuData 16 Ноябрь 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 68 раз и оно понравилось 13 зрителям. Приятного просмотра!