-
Notifications
You must be signed in to change notification settings - Fork 0
/
screentime.py
40 lines (33 loc) · 1.02 KB
/
screentime.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import pandas as pd
import numpy as np
import plotly.express as px
import plotly.graph_objects as go
data = pd.read_csv("Screentime - App Details.csv")
print(data.head())
data.isnull().sum()
print(data.describe())
figure = px.bar(data_frame=data,
x = "Date",
y = "Usage",
color="App",
title="Usage")
figure.show()
figure = px.bar(data_frame=data,
x = "Date",
y = "Notifications",
color="App",
title="Notifications")
figure.show()
figure = px.bar(data_frame=data,
x = "Date",
y = "Times opened",
color="App",
title="Times Opened")
figure.show()
figure = px.scatter(data_frame = data,
x="Notifications",
y="Usage",
size="Notifications",
trendline="ols",
title = "Relationship Between Number of Notifications and Usage")
figure.show()