0% found this document useful (0 votes)
6 views7 pages

Source Code

ddd

Uploaded by

Rahul Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views7 pages

Source Code

ddd

Uploaded by

Rahul Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

import pandas as pd

import matplotlib.pyplot as plt

x = pd.read_csv("D:\\movie analysis\\2010COLLECTION.csv")
xi = pd.read_csv("D:\\movie analysis\\2011COLLECTION.csv")
xii = pd.read_csv("D:\\movie analysis\\2012COLLECTION.csv")
xiii = pd.read_csv("D:\\movie analysis\\2013COLLECTION.csv")
xiv = pd.read_csv("D:\\movie analysis\\2014COLLECTION.csv")
xv = pd.read_csv("D:\\movie analysis\\2015COLLECTION.csv")
xvi = pd.read_csv("D:\\movie analysis\\2016COLLECTION.csv")
xvii = pd.read_csv("D:\\movie analysis\\2017COLLECTION.csv")
xviii = pd.read_csv("D:\\movie analysis\\2018COLLECTION.csv")
xix = pd.read_csv("D:\\movie analysis\\2019COLLECTION.csv")
xx = pd.read_csv("D:\\movie analysis\\2020COLLECTION.csv")

pd.set_option('display.max_columns', None)

print('''
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
-
-
- ----[ 🎉 WELCOME TO MOVIES DATA ANALYSIS 🎉 ]----
-
-
-
- HI..
-
- IN THIS PROGRAMME YOU CAN SEE
-
- THE DATA OF TOP 10 MOVIES OF YEAR " 2010 TO 2020 "
-
-
-
- ➡ TO SEE THE DATA OF MOVIES TYPE [ Y ]
-
- ➡ TO EXIT FROM OUR PROGRAMME TYPE [ N ]
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - ''')

a=input("👉")
while a == "Y" :
print('''
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - -
-
-
- [ IN WHICH FORMAT DO YOU WANT TO SEE THE DATA ]
-
-
-
- ➡ TO SEE THE DATA IN DATAFRAME TYPE [ 1 ]
-
- ➡ TO SEE THE DATA IN MATPLOTLIB TYPE[ 2 ]
-
- ➡ TO EXIT FROM OUR PROGRAMME TYPE [ N ]
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - ''')
c=(input('👉'))
if c== '1':
print ('''ENTER THE YEAR FROM [2010 TO 2020]''')
b= int(input('👉'))
if b==2010:
print(x)
elif b==2011:
print(xi)
elif b==2012:
print(xii)
elif b==2013:
print(xiii)
elif b==2014:
print(xiv)
elif b==2015:
print(xv)
elif b==2016:
print(xvi)
elif b==2017:
print(xvii)
elif b==2018:
print(xviii)
elif b==2019:
print(xix)
elif b==2020:
print(xx)

elif c== '2' :


print('ENTER THE YEAR FROM [2010 TO 2020]')
b=int (input ('👉'))
if b==2010:

movies = x['MOVIES']
dc=x['DOMESTIC COLLECTION ']
wc=x['WORLDWIDE COLLECTION']

plt.xticks(fontsize=8,rotation=90,fontname='Algerian')
plt.plot(movies,wc)
plt.plot(movies,dc)
plt.title ('MOVIES DATA ANALYSIS',fontname='Showcard
Gothic',fontsize=17)
plt.xlabel('MOVIES(2020`)',fontname='Bernard MT Condensed',fontsize=13)
plt.ylabel('DOMESTIC & WORLDWIDE COLLECTION',fontname='Bernard MT
Condensed',fontsize=13)
plt.legend("left")
plt.legend(labels='wd')

plt.show()
elif b==2011:

movies = xi['MOVIE']
dc=xi['DOMESTIC COLLECTION']
wc=xi['WORLDWIDE COLLECTION']

plt.xticks(fontsize=8,rotation=90,fontname='Algerian')
plt.plot(movies,wc)
plt.plot(movies,dc)
plt.title ('MOVIES DATA ANALYSIS',fontname='Showcard
Gothic',fontsize=17)
plt.xlabel('MOVIES(2020`)',fontname='Bernard MT Condensed',fontsize=13)
plt.ylabel('DOMESTIC & WORLDWIDE COLLECTION',fontname='Bernard MT
Condensed',fontsize=13)
plt.legend("left")
plt.legend(labels='wd')

plt.show()

elif b==2012:

movies = xii['MOVIES ']


dc=xii['DOMESTIC COLLECTION ']
wc=xii['WORLDWIDE COLLECTION ']

plt.xticks(fontsize=8,rotation=90,fontname='Algerian')
plt.plot(movies,wc)
plt.plot(movies,dc)
plt.title ('MOVIES DATA ANALYSIS',fontname='Showcard
Gothic',fontsize=17)
plt.xlabel('MOVIES(2020`)',fontname='Bernard MT Condensed',fontsize=13)
plt.ylabel('DOMESTIC & WORLDWIDE COLLECTION',fontname='Bernard MT
Condensed',fontsize=13)
plt.legend("left")
plt.legend(labels='wd')

plt.show()

elif b==2013:
movies = xiii['MOVIE']
dc=xiii['DOMESTIC COLLECTION']
wc=xiii['WORLDWIDE COLLECTION']

plt.xticks(fontsize=8,rotation=90,fontname='Algerian')
plt.plot(movies,wc)
plt.plot(movies,dc)
plt.title ('MOVIES DATA ANALYSIS',fontname='Showcard
Gothic',fontsize=17)
plt.xlabel('MOVIES(2020`)',fontname='Bernard MT Condensed',fontsize=13)
plt.ylabel('DOMESTIC & WORLDWIDE COLLECTION',fontname='Bernard MT
Condensed',fontsize=13)
plt.legend("left")
plt.legend(labels='wd')

plt.show()

elif b==2014:
movies = xiv['MOVIES ']
dc=xiv['DOMESTIC COLLECTION ']
wc=xiv['WORLDWIDE COLLECTION']

plt.xticks(fontsize=8,rotation=90,fontname='Algerian')
plt.plot(movies,dc)
plt.title ('MOVIES DATA ANALYSIS',fontname='Showcard
Gothic',fontsize=17)
plt.xlabel('MOVIES(2020`)',fontname='Bernard MT Condensed',fontsize=13)
plt.ylabel('DOMESTIC & WORLDWIDE COLLECTION',fontname='Bernard MT
Condensed',fontsize=13)
plt.legend("left")
plt.legend(labels='wd')

plt.show()

elif b==2015:

movies = xv['MOVIE']
dc=xv['DOMESTIC COLLECTION']
wc=xv['WORLDWIDE COLLECTION']

plt.xticks(fontsize=8,rotation=90,fontname='Algerian')
plt.plot(movies,wc)
plt.plot(movies,dc)
plt.title ('MOVIES DATA ANALYSIS',fontname='Showcard
Gothic',fontsize=17)
plt.xlabel('MOVIES(2020`)',fontname='Bernard MT Condensed',fontsize=13)
plt.ylabel('DOMESTIC & WORLDWIDE COLLECTION',fontname='Bernard MT
Condensed',fontsize=13)
plt.legend("left")
plt.legend(labels='wd')

plt.show()

elif b==2016:

movies = xvi['MOVIE']
dc=xvi['DOMESTIC COLLECTION']
wc=xvi['WORLDWIDE COLLECTION']

plt.xticks(fontsize=8,rotation=90,fontname='Algerian')
plt.plot(movies,wc)
plt.plot(movies,dc)
plt.title ('MOVIES DATA ANALYSIS',fontname='Showcard
Gothic',fontsize=17)
plt.xlabel('MOVIES(2020`)',fontname='Bernard MT Condensed',fontsize=13)
plt.ylabel('DOMESTIC & WORLDWIDE COLLECTION',fontname='Bernard MT
Condensed',fontsize=13)
plt.legend("left")
plt.legend(labels='wd')

plt.show()
elif b==2017:

movies = xvii['MOVIE']
dc=xvii['DOMESTIC COLLECTION']
wc=xvii['WORLDWIDE COLLECTION']

plt.xticks(fontsize=8,rotation=90,fontname='Algerian')
plt.plot(movies,wc)
plt.plot(movies,dc)
plt.title ('MOVIES DATA ANALYSIS',fontname='Showcard
Gothic',fontsize=17)
plt.xlabel('MOVIES(2020`)',fontname='Bernard MT Condensed',fontsize=13)
plt.ylabel('DOMESTIC & WORLDWIDE COLLECTION',fontname='Bernard MT
Condensed',fontsize=13)
plt.legend("left")
plt.legend(labels='wd')

plt.show()

elif b==2018:

movies = xviii['MOVIE']
dc=xviii['DOMESTIC COLLECTION']
wc=xviii['WORLDWIDE COLLECTION']

plt.xticks(fontsize=8,rotation=90,fontname='Algerian')
plt.plot(movies,wc)
plt.plot(movies,dc)
plt.title ('MOVIES DATA ANALYSIS',fontname='Showcard
Gothic',fontsize=17)
plt.xlabel('MOVIES(2020`)',fontname='Bernard MT Condensed',fontsize=13)
plt.ylabel('DOMESTIC & WORLDWIDE COLLECTION',fontname='Bernard MT
Condensed',fontsize=13)
plt.legend("left")
plt.legend(labels='wd')

plt.show()

elif b==2019:

movies = xix['MOVIE']
dc=xix['DOMESTIC COLLECTION']
wc=xix['WORLDWIDE COLLECTION']

plt.xticks(fontsize=8,rotation=90,fontname='Algerian')
plt.plot(movies,wc)
plt.plot(movies,dc)
plt.title ('MOVIES DATA ANALYSIS',fontname='Showcard
Gothic',fontsize=17)
plt.xlabel('MOVIES(2020`)',fontname='Bernard MT Condensed',fontsize=13)
plt.ylabel('DOMESTIC & WORLDWIDE COLLECTION',fontname='Bernard MT
Condensed',fontsize=13)
plt.legend("left")
plt.legend(labels='wd')

plt.show()
elif b==2020:

movies = xx['MOVIE']
dc=xx['DOMESTIC COLLECTION ']
wc=xx['WORLDWIDE COLLECTION']

plt.xticks(fontsize=8,rotation=90,fontname='Algerian')
plt.plot(movies,wc)
plt.plot(movies,dc)
plt.title ('MOVIES DATA ANALYSIS',fontname='Showcard
Gothic',fontsize=17)
plt.xlabel('MOVIES(2020`)',fontname='Bernard MT Condensed',fontsize=13)
plt.ylabel('DOMESTIC & WORLDWIDE COLLECTION',fontname='Bernard MT
Condensed',fontsize=13)
plt.legend("left")
plt.legend(labels='wd')

plt.show()
else:
('''
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
-
-
-
-
- ----[ 💀 PLEASE ENTER A VALID INPUT 💀 ]----
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - ''')

print('''
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
-
-
- ----[ D0 WANT TO CONTINUE THE
PROGRAMME]---- -
-
-
- ➡ TO CONTINUE TYPE [ Y ]
-
- ➡ TO EXIT TYPE [ N ]
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - ''')
a=input('👉')
if a=="N":
print('''
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
-
-
-
-
- ----[ ツ THANKS FOR VISITING OUR PROGRAMME ツ ]----
-
-
-
- ----[ BYE ]----
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - ''')

You might also like