1. Introduction
Mobile apps are everywhere. They are easy to create and can be very lucrative from the business standpoint. Specifically, Android is expanding as an operating system and has captured more than 74% of the total market[1].
The Google Play Store apps data has enormous potential to facilitate data-driven decisions and insights for businesses. In this notebook, we will analyze the Android app market by comparing ~10k apps in Google Play across different categories. We will also use the user reviews to draw a qualitative comparision between the apps.
The dataset you will use here was scraped from Google Play Store in September 2018 and was published on Kaggle. Here are the details:
- App: Name of the app
- Category: Category of the app. Some examples are: ART_AND_DESIGN, FINANCE, COMICS, BEAUTY etc.
- Rating: The current average rating (out of 5) of the app on Google Play
- Reviews: Number of user reviews given on the app
- Size: Size of the app in MB (megabytes)
- Installs: Number of times the app was downloaded from Google Play
- Type: Whether the app is paid or free
- Price: Price of the app in US$
- Last Updated: Date on which the app was last updated on Google Play
- App: Name of the app on which the user review was provided. Matches the `App` column of the `apps.csv` file
- Review: The pre-processed user review text
- Sentiment Category: Sentiment category of the user review - Positive, Negative or Neutral
- Sentiment Score: Sentiment score of the user review. It lies between [-1,1]. A higher score denotes a more positive sentiment.
From here on, it will be your task to explore and manipulate the data until you are able to answer the three questions described in the instructions panel.
# Use this cell to begin your analysis, and add as many as you would like!
import pandas as pd
import numpy as np
apps = pd.read_csv('datasets/apps.csv')
apps.info()
apps.head(20)
chars_to_remove = [',', '+']
for char in chars_to_remove:
apps['Installs'] = apps['Installs'].apply(lambda x: x.replace(char, ''))
apps['Installs'] = apps["Installs"].astype(int)
apps.info()
#apps_price_avg = apps['Price'].mean()
#apps_rating_avg = apps['Rating'].mean()
app_category_info = apps.groupby('Category').agg({'App':'count', 'Price':'mean', 'Rating': 'mean'})
app_category_info.rename(columns={'Rating':'Average rating', 'Price':'Average price', 'App':'Number of apps'})
finance_apps = apps[apps['Category']=='FINANCE']
finance_apps.info()
user_reviews = pd.read_csv("datasets/user_reviews.csv")
#user_reviews.info()
user_reviews_with_sent_score = user_reviews.groupby('App').agg({'Sentiment Score':'mean'})
user_reviews_with_sent_score
#top_10_user_feedback = user_reviews.groupby('App').agg({'Sentiment Score':'mean'}).sort_values('Sentiment Score', ascending=False)
#top_10_user_feedback
finance_app_with_reviews = pd.merge(finance_apps, user_reviews_with_sent_score, on='App').sort_values('Sentiment Score', ascending=False)
user_feedback = finance_app_with_reviews[['App', 'Sentiment Score']]
top_10_user_feedback = user_feedback.nlargest(n=10, columns=['Sentiment Score'])
top_10_user_feedback