-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython jupyter notebook code
40 lines (39 loc) · 1.17 KB
/
python jupyter notebook code
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
#FIRST OF ALL INSTALL THE FOLLWING LIBRARIES BEFORE IMPORTING
## pip install pandas
## pip install openpyxl
## pip install plotly
## pip install nbformat
import pandas as pd
Netflix = pd.read_excel("netflix_titles.xlsx")
Netflix
pd.set_option("display.max_rows", None )
Netflix
Netflix.describe()
Netflix.columns
Netflix["type"].unique()
#Netflix["title"] == "title"
Netflix["title"].describe()
Netflix.duplicated().count()
Netflix.head()
Netflix.count()
Netflix.fillna("-")
Netflix["director"].describe()
import plotly.express as px ##Aliasing
#px.histogram(Nextflix, x ="director")
#Netflix = pd.read_excel("netflix_titles.xlsx")
px.histogram(Netflix, x = "director")
Netflix["country"].describe()
Netflix["date_added"].describe()
px.histogram(Netflix, x ="date_added")
Netflix["release_year"].describe()
px.histogram(Netflix, x = "release_year" )
Netflix.columns
Netflix["listed_in"].describe()
px.histogram(Netflix, x ="listed_in")
Netflix["duration"].describe()
px.histogram(Netflix, x ="duration")
Netflix["type"].describe()
Netflix["type"].unique()
px.histogram(Netflix, x ="type")
Netflix.groupby("director")["country"].count().reset_index()
Netflix[Netflix["director"] == "Rajiv Chilaka"]