Solving Python Data Analysis Interview Questions - Microsoft

Опубликовано: 21 Ноябрь 2023
на канале: MaKuData
295
11

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:
Premium vs Freemium:
df = ms_download_facts.merge(ms_user_dimension, on = 'user_id', how = 'left').merge(ms_acc_dimension, on = 'acc_id', how = 'left')[['date', 'downloads', 'paying_customer']]
df = df.sort_values('date')
df = df.groupby(['date','paying_customer'], as_index = False)['downloads'].sum()

paying = df[df['paying_customer'] == 'yes']
non_paying = df[df['paying_customer'] == 'no']

df = paying.merge(non_paying, on = 'date', suffixes = ['_p', '_n'])[['date', 'downloads_p', 'downloads_n']]
df = df[df['downloads_n'] (more than) df['downloads_p']]

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


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