0% found this document useful (0 votes)
2 views1 page

Google Play Store Data Analysis Functions

The document contains Python code for data analysis using the pandas library, specifically for analyzing a dataset from 'googleplaystore.csv'. It defines several functions to display counts of app ratings, categories, installs, types, and content ratings. Each function sorts the results and prompts the user to continue after displaying the information.

Uploaded by

Ayaan Raza Khan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Google Play Store Data Analysis Functions

The document contains Python code for data analysis using the pandas library, specifically for analyzing a dataset from 'googleplaystore.csv'. It defines several functions to display counts of app ratings, categories, installs, types, and content ratings. Each function sorts the results and prompts the user to continue after displaying the information.

Uploaded by

Ayaan Raza Khan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

import pandas

import [Link] as plt


import numpy as np

pandas.set_option('display.max_rows', 50000)
pandas.set_option('display.max_columns', 25)
pandas.set_option('display.max_colwidth', 30)
pandas.set_option("[Link]", 2000)

df = pandas.read_csv('[Link]')

# Data Analysis
Functions--------------------------------------------------------------------------
-------------------
def ShowRatingWise():
s=df['Rating'].value_counts()
print(s.sort_index(ascending=False))
print()
input('Press Enter To Continue......')

def ShowCategoryWise():
s=df['Category'].value_counts()
print(s.sort_index())
print()
input('Press Enter To Continue......')

def ShowInstallWise():
s=df['Installs'].value_counts()
print(s.sort_index(ascending=False))
print()
input('Press Enter To Continue......')

def ShowTypeWise():
s=df['Type'].value_counts()
print(s.sort_index(ascending=False))
print()
input('Press Enter To Continue......')

def ShowContentRatingWise():
s=df['Content Rating'].value_counts()
print(s.sort_index(ascending=False))
print()
input('Press Enter To Continue......')

# End Of Data Analysis


Functions--------------------------------------------------------------------------
------------

You might also like