Professional Documents
Culture Documents
Hollywood Movies 2011
Hollywood Movies 2011
C:\Users\Administrator\anaconda3\Lib\site-packages\pandas\core\arrays\masked.py:60: U
serWarning: Pandas requires version '1.3.6' or newer of 'bottleneck' (version '1.3.5'
currently installed).
from pandas.core import (
In [5]: hwood.describe()
In [6]: hwood['Profitability'].describe()
count 134.000000
Out[6]:
mean 3.314521
std 6.616088
min 0.000000
25% 1.064754
50% 2.198864
75% 3.667050
max 64.672667
Name: Profitability, dtype: float64
In [7]: hwood.columns
In [11]: hwood.boxplot(column=['Profitability'])
localhost:8889/nbconvert/html/HollywoodMovies2011.ipynb?download=false 1/3
4/2/24, 8:13 PM HollywoodMovies2011
plt.show()
In [12]: Q1 = hwood['Profitability'].quantile(0.25)
Q3 = hwood['Profitability'].quantile(0.75)
IQR = Q3 - Q1
up = Q3 + (1.5 * IQR)
low = Q1-(1.5 * IQR)
0 64.672667
Out[15]:
1 40.379400
2 10.809800
3 10.624888
4 8.873292
5 8.186882
6 7.972960
Name: Profitability, dtype: float64
localhost:8889/nbconvert/html/HollywoodMovies2011.ipynb?download=false 2/3
4/2/24, 8:13 PM HollywoodMovies2011
Monster
0 Insidious Sony 67.0 65.0 Horror 2408.0
Force
Paranormal Monster
1 Independent 68.0 58.0 Horror 3321.0
Activity 3 Force
Harry
Potter and
3 the Deathly Warner Bros 96.0 92.0 Rivalry Fantasy 4375.0
Hallows
Part 2
Relativity
4 Bridesmaids 90.0 77.0 Rivalry Comedy 2918.0
Media
Midnight in
5 Sony 93.0 84.0 Love Romance 944.0
Paris
DreamWorks
6 The Help 75.0 91.0 Maturation Drama 2534.0
Pictures
In [ ]:
localhost:8889/nbconvert/html/HollywoodMovies2011.ipynb?download=false 3/3