SlideShare a Scribd company logo
1 of 5
Download to read offline
9/20/23, 10:55 PM Untitled19.ipynb - Colaboratory
https://colab.research.google.com/drive/1yp6bmte8FJDIV36MybTtJcHeugjFQKF6#scrollTo=1hbjGmTcn40T&printMode=true 1/5
import pandas as pd
boll = pd.read_csv('/content/bollywood.csv')
SlNo
Release
Date
MovieName ReleaseTime Genre Budget BoxOfficeCollection YoutubeViews YoutubeLi
0 1
18-Apr-
14
2 States LW Romance 36 104.0 8576361 26
1 2
4-Jan-
13
Table No.
21
N Thriller 10 12.0 1087320 1
boll.head(2)
boll.Genre.value_counts()
Comedy 36
Drama 35
Thriller 26
Romance 25
Action 21
Thriller 3
Action 3
Name: Genre, dtype: int64
boll[['Genre','ReleaseTime']].value_counts()
Genre ReleaseTime
Drama N 24
Comedy N 23
Thriller N 20
Romance N 15
Action N 12
Drama HS 6
Comedy LW 5
HS 5
Thriller FS 4
Romance LW 4
Drama FS 4
Comedy FS 3
Action N 3
Romance FS 3
HS 3
Action LW 3
HS 3
FS 3
Thriller N 2
Thriller HS 1
LW 1
Drama LW 1
Thriller LW 1
dtype: int64
boll['month'] = pd.DatetimeIndex(boll['Release Date']).month
boll.head(1)
9/20/23, 10:55 PM Untitled19.ipynb - Colaboratory
https://colab.research.google.com/drive/1yp6bmte8FJDIV36MybTtJcHeugjFQKF6#scrollTo=1hbjGmTcn40T&printMode=true 2/5
SlNo
Release
Date
MovieName ReleaseTime Genre Budget BoxOfficeCollection YoutubeViews YoutubeLi
0 1
18-Apr-
14
2 States LW Romance 36 104.0 8576361 26
boll['month'].value_counts()
1 20
3 19
5 18
7 16
2 16
4 11
9 10
6 10
11 10
10 9
8 8
12 2
Name: month, dtype: int64
boll[boll['Budget']>25][['MovieName','month']].value_counts()
MovieName month
2 States 4 1
Raja Natwarlal 8 1
Kill Dil 11 1
Kochadaiiyaan 5 1
Krrish 3 11 1
..
Highway 2 1
Himmatwala 3 1
Holiday 6 1
Humshakals 6 1
Zilla Ghaziabad 2 1
Length: 62, dtype: int64
boll['ROI']=(boll['BoxOfficeCollection']-boll['Budget'])/boll['Budget']
boll.nlargest(10,['ROI'])
9/20/23, 10:55 PM Untitled19.ipynb - Colaboratory
https://colab.research.google.com/drive/1yp6bmte8FJDIV36MybTtJcHeugjFQKF6#scrollTo=1hbjGmTcn40T&printMode=true 3/5
SlNo
Release
Date
MovieName ReleaseTime Genre Budget BoxOfficeCollection YoutubeViews Youtube
64 65
26-Apr-
13
Aashiqui 2 N Romance 12 110.0 2926673
89 90
19-Dec-
14
PK HS Drama 85 735.0 13270623
132 133
13-Sep-
13
Grand
Masti
LW Comedy 35 298.0 1795640
135 136
20-Sep-
13
The
Lunchbox
N Drama 10 85.0 1064854
87 88
14-Jun-
13
Fukrey N Comedy 5 36.2 227912
58 59
5-Sep-
14
Mary Kom N Drama 15 104.0 6086811
128 129
18-Oct-
13
Shahid FS Drama 6 40.0 1148516
37 38
11-Jul-
14
Humpty
Sharma Ki
Dulhania
N Romance 20 130.0 6604595
101 102
12-Jul-
13
Bhaag
Milkha
Bhaag
N Drama 30 164.0 2635390
115 116
9-Aug-
13
Chennai
Express
FS Comedy 75 395.0 1882346
boll.groupby('ReleaseTime')['ROI'].mean()
ReleaseTime
FS 0.973853
HS 0.850867
LW 1.127205
N 0.657722
Name: ROI, dtype: float64
(array([64., 40., 19., 11., 4., 4., 2., 2., 1., 2.]),
array([ 2. , 16.8, 31.6, 46.4, 61.2, 76. , 90.8, 105.6, 120.4,
135.2, 150. ]),
<BarContainer object of 10 artists>)
import matplotlib.pyplot as plt
import seaborn as sn
%matplotlib inline
import warnings
warnings.filterwarnings('ignore')
plt.hist(boll['Budget'])
sn.distplot(boll['Budget'])
9/20/23, 10:55 PM Untitled19.ipynb - Colaboratory
https://colab.research.google.com/drive/1yp6bmte8FJDIV36MybTtJcHeugjFQKF6#scrollTo=1hbjGmTcn40T&printMode=true 4/5
<Axes: xlabel='Budget', ylabel='Density'>
<matplotlib.legend.Legend at 0x7bea32b63880>
sn.distplot(boll[boll['Genre']=='Comedy']['ROI'],color='g',label='comedy')
sn.distplot(boll[boll['Genre']=='Drama']['ROI'],color='r',label='drama')
plt.legend()
BoxOfficeCollection YoutubeLikes
BoxOfficeCollection 1.000000 0.682517
YoutubeLikes 0.682517 1.000000
feature=['BoxOfficeCollection','YoutubeLikes']
boll[feature].corr()
heatfeature=['Budget', 'BoxOfficeCollection','YoutubeViews','YoutubeLikes','YoutubeDislikes']
sn.heatmap(boll[heatfeature].corr(),annot= True)
9/20/23, 10:55 PM Untitled19.ipynb - Colaboratory
https://colab.research.google.com/drive/1yp6bmte8FJDIV36MybTtJcHeugjFQKF6#scrollTo=1hbjGmTcn40T&printMode=true 5/5
<Axes: >

More Related Content

Recently uploaded

一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理pyhepag
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeBoston Institute of Analytics
 
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...Amil baba
 
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...ssuserf63bd7
 
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理pyhepag
 
Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...BabaJohn3
 
How to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data AnalyticsHow to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data AnalyticsBrainSell Technologies
 
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI  MANAJEMEN OF PENYAKIT TETANUS.pptMATERI  MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI MANAJEMEN OF PENYAKIT TETANUS.pptRachmaGhifari
 
2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group MeetingAlison Pitt
 
一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理pyhepag
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Valters Lauzums
 
Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"John Sobanski
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchersdarmandersingh4580
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证acoha1
 
Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024patrickdtherriault
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunksgmuir1066
 
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Klinik Aborsi
 
Abortion Clinic in Randfontein +27791653574 Randfontein WhatsApp Abortion Cli...
Abortion Clinic in Randfontein +27791653574 Randfontein WhatsApp Abortion Cli...Abortion Clinic in Randfontein +27791653574 Randfontein WhatsApp Abortion Cli...
Abortion Clinic in Randfontein +27791653574 Randfontein WhatsApp Abortion Cli...mikehavy0
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshareraiaryan448
 

Recently uploaded (20)

一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
 
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
 
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
 
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
 
Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...
 
How to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data AnalyticsHow to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data Analytics
 
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI  MANAJEMEN OF PENYAKIT TETANUS.pptMATERI  MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
 
2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting
 
一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
 
123.docx. .
123.docx.                                 .123.docx.                                 .
123.docx. .
 
Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchers
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
 
Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
 
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
 
Abortion Clinic in Randfontein +27791653574 Randfontein WhatsApp Abortion Cli...
Abortion Clinic in Randfontein +27791653574 Randfontein WhatsApp Abortion Cli...Abortion Clinic in Randfontein +27791653574 Randfontein WhatsApp Abortion Cli...
Abortion Clinic in Randfontein +27791653574 Randfontein WhatsApp Abortion Cli...
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshare
 

Featured

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

predictive analysis 1 assignment.pdf

  • 1. 9/20/23, 10:55 PM Untitled19.ipynb - Colaboratory https://colab.research.google.com/drive/1yp6bmte8FJDIV36MybTtJcHeugjFQKF6#scrollTo=1hbjGmTcn40T&printMode=true 1/5 import pandas as pd boll = pd.read_csv('/content/bollywood.csv') SlNo Release Date MovieName ReleaseTime Genre Budget BoxOfficeCollection YoutubeViews YoutubeLi 0 1 18-Apr- 14 2 States LW Romance 36 104.0 8576361 26 1 2 4-Jan- 13 Table No. 21 N Thriller 10 12.0 1087320 1 boll.head(2) boll.Genre.value_counts() Comedy 36 Drama 35 Thriller 26 Romance 25 Action 21 Thriller 3 Action 3 Name: Genre, dtype: int64 boll[['Genre','ReleaseTime']].value_counts() Genre ReleaseTime Drama N 24 Comedy N 23 Thriller N 20 Romance N 15 Action N 12 Drama HS 6 Comedy LW 5 HS 5 Thriller FS 4 Romance LW 4 Drama FS 4 Comedy FS 3 Action N 3 Romance FS 3 HS 3 Action LW 3 HS 3 FS 3 Thriller N 2 Thriller HS 1 LW 1 Drama LW 1 Thriller LW 1 dtype: int64 boll['month'] = pd.DatetimeIndex(boll['Release Date']).month boll.head(1)
  • 2. 9/20/23, 10:55 PM Untitled19.ipynb - Colaboratory https://colab.research.google.com/drive/1yp6bmte8FJDIV36MybTtJcHeugjFQKF6#scrollTo=1hbjGmTcn40T&printMode=true 2/5 SlNo Release Date MovieName ReleaseTime Genre Budget BoxOfficeCollection YoutubeViews YoutubeLi 0 1 18-Apr- 14 2 States LW Romance 36 104.0 8576361 26 boll['month'].value_counts() 1 20 3 19 5 18 7 16 2 16 4 11 9 10 6 10 11 10 10 9 8 8 12 2 Name: month, dtype: int64 boll[boll['Budget']>25][['MovieName','month']].value_counts() MovieName month 2 States 4 1 Raja Natwarlal 8 1 Kill Dil 11 1 Kochadaiiyaan 5 1 Krrish 3 11 1 .. Highway 2 1 Himmatwala 3 1 Holiday 6 1 Humshakals 6 1 Zilla Ghaziabad 2 1 Length: 62, dtype: int64 boll['ROI']=(boll['BoxOfficeCollection']-boll['Budget'])/boll['Budget'] boll.nlargest(10,['ROI'])
  • 3. 9/20/23, 10:55 PM Untitled19.ipynb - Colaboratory https://colab.research.google.com/drive/1yp6bmte8FJDIV36MybTtJcHeugjFQKF6#scrollTo=1hbjGmTcn40T&printMode=true 3/5 SlNo Release Date MovieName ReleaseTime Genre Budget BoxOfficeCollection YoutubeViews Youtube 64 65 26-Apr- 13 Aashiqui 2 N Romance 12 110.0 2926673 89 90 19-Dec- 14 PK HS Drama 85 735.0 13270623 132 133 13-Sep- 13 Grand Masti LW Comedy 35 298.0 1795640 135 136 20-Sep- 13 The Lunchbox N Drama 10 85.0 1064854 87 88 14-Jun- 13 Fukrey N Comedy 5 36.2 227912 58 59 5-Sep- 14 Mary Kom N Drama 15 104.0 6086811 128 129 18-Oct- 13 Shahid FS Drama 6 40.0 1148516 37 38 11-Jul- 14 Humpty Sharma Ki Dulhania N Romance 20 130.0 6604595 101 102 12-Jul- 13 Bhaag Milkha Bhaag N Drama 30 164.0 2635390 115 116 9-Aug- 13 Chennai Express FS Comedy 75 395.0 1882346 boll.groupby('ReleaseTime')['ROI'].mean() ReleaseTime FS 0.973853 HS 0.850867 LW 1.127205 N 0.657722 Name: ROI, dtype: float64 (array([64., 40., 19., 11., 4., 4., 2., 2., 1., 2.]), array([ 2. , 16.8, 31.6, 46.4, 61.2, 76. , 90.8, 105.6, 120.4, 135.2, 150. ]), <BarContainer object of 10 artists>) import matplotlib.pyplot as plt import seaborn as sn %matplotlib inline import warnings warnings.filterwarnings('ignore') plt.hist(boll['Budget']) sn.distplot(boll['Budget'])
  • 4. 9/20/23, 10:55 PM Untitled19.ipynb - Colaboratory https://colab.research.google.com/drive/1yp6bmte8FJDIV36MybTtJcHeugjFQKF6#scrollTo=1hbjGmTcn40T&printMode=true 4/5 <Axes: xlabel='Budget', ylabel='Density'> <matplotlib.legend.Legend at 0x7bea32b63880> sn.distplot(boll[boll['Genre']=='Comedy']['ROI'],color='g',label='comedy') sn.distplot(boll[boll['Genre']=='Drama']['ROI'],color='r',label='drama') plt.legend() BoxOfficeCollection YoutubeLikes BoxOfficeCollection 1.000000 0.682517 YoutubeLikes 0.682517 1.000000 feature=['BoxOfficeCollection','YoutubeLikes'] boll[feature].corr() heatfeature=['Budget', 'BoxOfficeCollection','YoutubeViews','YoutubeLikes','YoutubeDislikes'] sn.heatmap(boll[heatfeature].corr(),annot= True)
  • 5. 9/20/23, 10:55 PM Untitled19.ipynb - Colaboratory https://colab.research.google.com/drive/1yp6bmte8FJDIV36MybTtJcHeugjFQKF6#scrollTo=1hbjGmTcn40T&printMode=true 5/5 <Axes: >