Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
39 views
10 pages
Amazon Prime Analysis
Uploaded by
deepak Rulez
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save amazon prime analysis For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
39 views
10 pages
Amazon Prime Analysis
Uploaded by
deepak Rulez
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save amazon prime analysis For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 10
Search
Fullscreen
1817723, 1017 AM In [1]: In [2]: In [3]: Unttled22-Copy' ~Jpyier Notebook Amazon Prime Videos Analysis Using Python ‘The Amazon Prime Videos set has the information about the Tv Shows & Movies. The Data set available from Flexible which is a Third Party Amazon Prime Videos which engine . and available on Kaggle dataset for free. Import Library import pandas as pd import pandas as pd import seaborn as. sns inport matplotlib.pyplot as plt import seaborn as sns €:\Users\Syed Arif\anaconda3\1ib\site-packages\scipy\__init_.py:146: Userwar ning: A NumPy version >=1.16.5 and <1.23.@ is required for this version of Sc ipy (detected version 1.25.1 warnings.warn(f"A NumPy version >=(np_minversion} and <{np_maxversion}" Uploading Csv fle dF = pd.read_csv(r"C:\Users\syed Arif\Downloads\amazon_prime_titles.csv") Data Preprocessing -head() head is used show to the By default rows in the dataset localhost 8888/notebooks/Untiled22-Copy1 pynbtin-which-yoar-neighest-aling-show-ir-line-plot sno1817723, 1017 AM In [4]: df.head() Unttled22-Copy' ~Jpyier Notebook out(a]: show.ld type ttle director __cast_country date_added release_yoar rating Brendan the Gleeson, Don Tayor March 2, © at Move rnd yggSQh AT cmada Mae 2014 NaN Cordon Prsent Mahesh Take Maniekar, se Novo Gute Gish ADhay gig Maren 30, . 1 2 Mi Good Joshi Mahajan, Ind 2021 201813 Night Sachin wenedokar Tor Sizemore torenzo Secrets of dosh United Maren 0, 268 Mowe Camas 2017 NaN Deception weber EAMES: Sates B02 LaSerdo ® Interviews Pink wih in sonia United Mare 3, 2st Movo Staying Adol 7 2014 NaN 0 ppderson yall States 202 rinoy. tomy Dean stanton Monster _Gies United Maren 30, 4 55 Movio Mater Foster M8" cngdom 2021 ‘000 Non George Cos. -tail() tail is used to show rows by Descending order cans 88otbocktUrile22-opy ipl whchyearnighas ang how 2101817723, 1017 AM Unttled22-Copy' ~Jpyier Notebook In 5]: df.tail() out(5]: show id type _ ttle director cast country date_added release_year atin Pride Of Joseph Leo Goroey 9662 39664 Move The Ht Bobby NaN Nan 1407 Bowery Lewis Jordan oick vosauRGH TV Planet RONNIE assa 59605 g,7V Planet a STEVENS, NaN NaN awe 6 Liay MORRIS, i Ray Stevenson, Stove ‘an 9665 39665 Move Oulpost St lan ay NaN 2008 Richard Brake, M Esteban Maradona Recagno, ees 30067 g,/¥ “Blessed NaN "Ezoaulel NaN NaN oer Dream Stemi Luciano Vit Michaol Caine, Emily 9667 59668 Movie —_fHamty Daniel Nicrimer, NaN NaN 2010 Joseph Gigun, , -Shape It show the total no of rows & Column in the dataset In [6]: df.shape out[6]: (9668, 12) -Columns It show the no of each Column localhost 88¢8natabooks!Urtilad22-Copy1ipmbinwhich-yer-eghestating shows ano1817723, 1017 AM In [7]: out(7]: In [8]: out [8]: In [9]: out [9]: localhost 8888/notebooks/Untiled22-Copy1 ipynbfin-which-yoar-neighest-aling-shows Untted22-opyt super Notebook df.columns Index({"show_id', ‘type’, ‘title’, ‘director’, ‘cast’, ‘country’, “date_adde w snetease year’, ‘rating’, ‘duration’, “Listed in’, ‘description’ ], atype=" object) -dtypes This Attribute show the data type of each column df.dtypes show_id object type object title object director object cast object country object date_added object release year int64 rating object duration object Listed_in object description object dtype: object -unique() ina column, It show the unique value of specific column dF["director"] unique) array(['Don McKellar’, ‘Girish Joshi’, ‘Josh Webber’, “John-Paul Davidson, Stephen Warbeck’, ‘Emily Skye’, ‘Steve Barker'], dtype=object) -nuique() It will show the total no of unque value from whole data frame ano1817723, 1017 AM In [10]: df.nunique() out[10]: show_id 9668 type 2 title 9668 director s774 cast 7927 country 86 date_added 84 release year 100 rating 24 duration 29 Listed_in sis description 9414 type: intes -describe() Unttled22-Copy' ~Jpyier Notebook It show the Count, mean , median ete In [11]: df.describe() out[11]: release_year ‘count std 25% 50% 75% -value_counts '9668.000000 2008,341849 19.922402 +1920,000000 2007.000000 2016,000000 2019,000000 2021.000000 It Shows all the unique values with their count localhost 8888/notebooks/Untiled22-Copy1 ipynbfin-which-yoar-neighest-aling-shows so1817723, 1017 AM In [12]: out (12): In [13]: out [13]: Unttled22-Copy' ~Jpyier Notebook df["director"].value_counts() Mark Knight 113 Cannis Holder 61 Moonbug Entertainment 37 Jay Chapman 3a Arthur van Merwijk 30 Andrew Traucki 1 Karyn Kusama 1 K. Subash 1 Robert Cuffley 1 steve Barker 1 Name: director, Length: 5774, dtype: inte4 isnull() It shows the how many null values df isnull() show_id type title director cast country date_added release year rating duration 0 False False False False False False False False Tue False 1 False False False False False False False False False False 2 False False False False False False False False Tue False 3 False False False False False False False False Tue False 4 False False False False False False False False Tue False 9663 False False False False Fake True True False False False 9664 False False False Tue False Tue True False False False 9665 False False False False Fake © Tue Tre False False False 9666 False False Falso © Tue False © Tue True False False False 9667 False False False False Fake Tre Tre False False False 9668 rows x 12 columns localhost 8888/notebooks/Untiled22-Copy1 pynbtin-which-yoar-neighest-aling-show-ir-line-plot ano1817723, 1017 AM Unttled22-Copy' ~Jpyier Notebook In [14]: df.info()
Rangelndex: 9668 entries, @ to 9667 Data columns (total 12 columns # Column Non-Null Count type e 9668 non-null. 1 9668 non-null. 2 9668 non-null 3 director 7586 non-null. 4 cast 8435 non-null 5 country 672 non-null 6 date_added 155 non-null 7 release_year 9668 non-null 8 rating 9331 non-null. 9 duration 9668 non-null 1@ listed_in 9668 non-null 11 description 9668 non-null intea(1), object(11) memory usage: 906.5+ KB How many Null value present show all the null values in Heatmap. In [15]: sns.heatmap(dF. isnul1()) plt.show() uration escription In which year Heighest number of Tv shows and Movies were release. localhost 8888/notebooks/Untiled22-Copy1 pynbtin-which-yoar-neighest-aling-show-in-line-plot1817723, 1017 AM In [16]: out(16]: In [17]: out [17]: In [18]: out (18): Unitled22-Copy' -Jupyter Notebook df[‘release_year' ].value_counts() 2e21 1442. 2020 © 962 2019 929 2018 © 623 2017562. 1922 2 1926 2 1924 1 1923 1 1927 1 Name: release_year, Length: 108, dtype: intea How many Movies and Tv shows are in the dataset df -type.value_counts() Movie 7814 TV Show 1854 Name: type, dtype: int64 df -type.value_counts().plot(kind = "bar")
2000 7000 «000 000 4000 3000 2000 . Zz ; Movie show Show all records Type is "Movies" & Country is "United Kingdom". localhost 8888inotebooks/Untiled22-Copy1pynbin-vhich-year-neigheslaling-show-in-line-plot ano1817723, 1017 AM Unttled22-Copy' -Jupyier Notebook In [19]: df[(d#["type"] = jovie") & (df["country"] ‘United Kingdom")].head(3) out([19): show.id type tile rector _cast_county_date_added_rlease_year rating ary Deen Monster Giles “Kfort _Unted March 30, 4 85 Movie Maker Foster O'Brien, Kingdom 2021 1989 NaN Geom eos Gregory hing chsh per i Uied Mare 30 5 86 Move Wi wand Stevenson, Kings Sop 1968 NN on vate on Eon Musk, Musk Winer United 1496 Nove Teen! tla Wenner Une! ay2.aer 2018 Ha Weston ron odor, saterbra Show all records Type is “Movies” & director is “Paul Weiland". In [23]: dF{(dF["type"] == "Movie") & (df["director"] == "Paul Weiland")]-head(3) out {23}: show_ld type thie. director cast country date_added release year rating dk eregory 5 Beng pay et United — Marc o, 58 Movie Mt Wieland. Stevenson, Kingdom 2024 1969 NaN hone Show Top 3 Directors, Who gave the heighest Number of Tv shows and Movies Released on Prime Video. In [27]: df["director*].value_counts()-head(3) out{27]: Mark knight 13 Cannis Holder 62 Moonbug Entertainment 37 inted Name: director, dtype: localhost 8888/notebooks/Untiled22-Copy1 pynbtin-which-yoar-neighest-aling-show-in-line-plot sno1817723, 1017 AM LUnitled22-Copy' -Jupyter Notebook in which year heighest rating show in a plot In [33]: sns.stripplot(x = “release year" , y = ‘rating’, data = df) out[33]:
rating 32019801960 «1980 «2000-2020 release year In (]: localhost 8888inotebooks/Untiled22-Copy1pynbin-vhich-year-neigheslaling-show-in-line-plot r010
You might also like
Pandas Total Notes
PDF
100% (1)
Pandas Total Notes
66 pages
4 BNI Python Training
PDF
100% (1)
4 BNI Python Training
126 pages
Chapter 2 - Python Pandas II
PDF
No ratings yet
Chapter 2 - Python Pandas II
71 pages
Cheat Sheet
PDF
No ratings yet
Cheat Sheet
10 pages
Data Handling Using Pandas - Revision Notes
PDF
No ratings yet
Data Handling Using Pandas - Revision Notes
6 pages
Cheat Sheet: The Pandas Dataframe Object: Preliminaries Get Your Data Into A Dataframe
PDF
100% (1)
Cheat Sheet: The Pandas Dataframe Object: Preliminaries Get Your Data Into A Dataframe
12 pages
Cheat Sheet: The Pandas Dataframe Object: Preliminaries Get Your Data Into A Dataframe
PDF
100% (1)
Cheat Sheet: The Pandas Dataframe Object: Preliminaries Get Your Data Into A Dataframe
10 pages
Pandas
PDF
No ratings yet
Pandas
167 pages
Netflix Case
PDF
0% (1)
Netflix Case
19 pages
IP - Pandas 1 & 2 (Worksheet) Class 12
PDF
No ratings yet
IP - Pandas 1 & 2 (Worksheet) Class 12
16 pages
Pandas DataFrame Notes
PDF
100% (1)
Pandas DataFrame Notes
10 pages
Pandas Cheat Sheet Final
PDF
No ratings yet
Pandas Cheat Sheet Final
1 page
Panda 3
PDF
No ratings yet
Panda 3
11 pages
Pandas: Import
PDF
100% (1)
Pandas: Import
13 pages
Worksheet - Pandas
PDF
100% (1)
Worksheet - Pandas
16 pages
15 Pandas Function For 90 - of The Work
PDF
No ratings yet
15 Pandas Function For 90 - of The Work
12 pages
Anurag Chaturvedi Netflix - Jupyter - Notebook Case Study
PDF
No ratings yet
Anurag Chaturvedi Netflix - Jupyter - Notebook Case Study
27 pages
Document From Gr7
PDF
No ratings yet
Document From Gr7
29 pages
15 Pandas That Every Data Scientists Should Know 1674474419
PDF
No ratings yet
15 Pandas That Every Data Scientists Should Know 1674474419
10 pages
Investigate A Dataset
PDF
No ratings yet
Investigate A Dataset
14 pages
Exp - 1
PDF
No ratings yet
Exp - 1
17 pages
Pyspark Basic Tasks
PDF
No ratings yet
Pyspark Basic Tasks
8 pages
Netflix Data Analysis 1683296773
PDF
No ratings yet
Netflix Data Analysis 1683296773
14 pages
Youtube Analysis
PDF
No ratings yet
Youtube Analysis
13 pages
COM 428 - Jupyter Notebook2 - 101223
PDF
No ratings yet
COM 428 - Jupyter Notebook2 - 101223
16 pages
Exercise 3
PDF
No ratings yet
Exercise 3
25 pages
Reshaping Data With Python
PDF
No ratings yet
Reshaping Data With Python
1 page
Data Frame 100 Questions
PDF
No ratings yet
Data Frame 100 Questions
16 pages
Marvel Vs DC
PDF
No ratings yet
Marvel Vs DC
1 page
Netflix PDF
PDF
No ratings yet
Netflix PDF
16 pages
Session2-DM Using Pandas
PDF
No ratings yet
Session2-DM Using Pandas
51 pages
Business Case - Netflix - Data Exploration and Visualisation - Ipynb - Colab
PDF
No ratings yet
Business Case - Netflix - Data Exploration and Visualisation - Ipynb - Colab
9 pages
Import As Import As Import As Import Import As From Import: 'Ggplot'
PDF
No ratings yet
Import As Import As Import As Import Import As From Import: 'Ggplot'
13 pages
Data Cleaning and Exploratory Data Analysis With Pandas On Trending Youtube Video Statistics
PDF
No ratings yet
Data Cleaning and Exploratory Data Analysis With Pandas On Trending Youtube Video Statistics
5 pages
Netflix Case Study by Pavithran
PDF
No ratings yet
Netflix Case Study by Pavithran
36 pages
Netflix Businesscase ShivangKhare
PDF
No ratings yet
Netflix Businesscase ShivangKhare
73 pages
15 Funciones Esenciales de Pandas
PDF
No ratings yet
15 Funciones Esenciales de Pandas
12 pages
Recommendation System 1696663388
PDF
No ratings yet
Recommendation System 1696663388
29 pages
NM Assignment
PDF
No ratings yet
NM Assignment
14 pages
Pandas Data Frame For Beginners
PDF
No ratings yet
Pandas Data Frame For Beginners
25 pages
Moviesuggester - Jupyter Notebook
PDF
No ratings yet
Moviesuggester - Jupyter Notebook
11 pages
Swati Mam The - Iscale Movies Project Code
PDF
No ratings yet
Swati Mam The - Iscale Movies Project Code
13 pages
Exercise - Pandas
PDF
No ratings yet
Exercise - Pandas
52 pages
Netflix Data Analysis
PDF
No ratings yet
Netflix Data Analysis
23 pages
Netflix Business Case Study - Data Exploration and Visualisation.. Sonam Meshram
PDF
No ratings yet
Netflix Business Case Study - Data Exploration and Visualisation.. Sonam Meshram
27 pages
Pandas DataFrameObject
PDF
No ratings yet
Pandas DataFrameObject
4 pages
Pandas (Ziad)
PDF
No ratings yet
Pandas (Ziad)
38 pages
Cheto Essential-Pandas
PDF
No ratings yet
Cheto Essential-Pandas
2 pages
Pandas 1705297450
PDF
No ratings yet
Pandas 1705297450
21 pages
Pandas 1
PDF
No ratings yet
Pandas 1
50 pages
Lecture Week2
PDF
No ratings yet
Lecture Week2
72 pages
Movie Data Analysis Netflix
PDF
No ratings yet
Movie Data Analysis Netflix
16 pages
Pandas Cheat Sheet
PDF
No ratings yet
Pandas Cheat Sheet
20 pages
What Is Pandas
PDF
No ratings yet
What Is Pandas
15 pages
Pandas Merged
PDF
No ratings yet
Pandas Merged
2 pages
Module1-Cheat-Sheet-LINE PLOT
PDF
No ratings yet
Module1-Cheat-Sheet-LINE PLOT
3 pages
Netflix Data Analysis Project
PDF
No ratings yet
Netflix Data Analysis Project
16 pages
Netflix - Jupyter Notebook
PDF
No ratings yet
Netflix - Jupyter Notebook
20 pages
Numpy For Data Science
PDF
No ratings yet
Numpy For Data Science
94 pages
Netflix Users Analysis Using Python-1
PDF
No ratings yet
Netflix Users Analysis Using Python-1
15 pages
Pub G Analysis
PDF
No ratings yet
Pub G Analysis
14 pages
Instagram Analysis
PDF
No ratings yet
Instagram Analysis
13 pages