Sahil and Pankaj Project 1

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 16

JAWAHAR NAVODAYA VIDYALAYA,

CANACONA, SOUTH GOA

IP INVESTIGATORY PROJECT
2020 – 21
TOPIC: MOVIES ANALYSIS
SUBMITTED BY: GUIDED BY:
Mast. PANKAJ P. MRS.CHANDRAKALA
Mast. SAHIL KHOLKAR SAWARKAR
( XII ) ( PGT(computer science))
INTRODUCTION
In this 22th century, people have designed most
complicated and versatile devices beyond our
extent of imagination, which have made our lives
better. Along with this development, technology
too plays an important role in making a life easier.
With an inspiration of such a great achievements
I have made a project on movie analysis in the
form of data frame, data visualization and
presentation of histogram of all movies ,which
analysis their information . The salient feature of
our project is that you can get the whole data of
movies just at one glance. We have used python
language in this project which is one of the best
and most convenient machine language used
worldwide. We have made efforts to design this
program so that viewers can get best movies
easily.
CERTIFICATE
This is to certify that Mast. PANKAJ P. of class XII
science has successfully completed their project work of
Informative Practices under the guidance of subject
teacher. during the year 2020-21 from Jawahar
Navodaya Vidyalaya, Canacona, South Goa in partial
fulfilment of Informative Practices practical
examination conducted by CBSE.

Signature of Signature of internal


candidate examiner

Signature of Signature of principal


external examiner
ACKNOWLEDGEMENT
I wish to express my deep gratitude to my PGT
Computer Science (Mrs. Chandrakala Sawarkar) for
her continuous support, guidance, individual
suggestion and encouragement throughout the period
of my project.
My sincere thanks to our Principal Mr. Animesh Pal
for incorporating with the curriculum which lead to
individual development.
I wish to express my hearty thanks to Navodaya
family members, friends and Classmates for their
cooperation to this project work and also my deep
thanks to my school computer department to make it
as a Successful project work.

BIBLIOGRAPHY
1. Informatics practices With Python - Class XII
By : Sumita Arora
2. A Project Report On Movie Analysis.
3. Website: https://cbsetoday.com/ip-projects-
class-12-source-code/

CERTIFICATE
This is to certify that Mast. Sahil Kholkar of class XII
science has successfully completed their project work of
Informative Practices under the guidance of subject
teacher. during the year 2020-21 from Jawahar
Navodaya Vidyalaya, Canacona, South Goa in partial
fulfilment of Informative Practices practical
examination conducted by CBSE.

Signature of Signature of internal


candidate examiner

Signature of Signature of principal


external examiner
#CODE
import pandas as pd

import numpy as np

import matplotlib.pyplot as plt

df = pd.read_csv(r"C:\sahil\movies.CSV")

while True:

print('\n\nData Analysis MENU ')


print('_'*100)

print('1. Show Whole DataFrame')

print('2. Show Columns')

print('3. Update a Record\n')

print('4. Rating Wise Report \n')

print('5. Language wise Report \n')

print('6. Data Summery\n')

print('7. graph menu \n')

ch = int(input('Enter your choice:'))

if ch == 1:

print(df)

if ch == 2:

print(df.columns)

if ch == 3:

index_no = int(

input('Enter the Index Number that You want to update :'))

df = df.drop(df.index[index_no])

print(df)

print('\n\n\n Press any key to continue....')

if ch==4:

g = df.sort_values(by=['vote_average','vote_count'],ascending=False)
print('Top 20 Movies Based on Rating')

print('-'*120)

print(g.head(20))

print('\n\n\n Press any key to continue....')

if ch==5:

df1=df.language.unique()

print('Available Languages :',df1)

print('\n\n')

lang1 =input('Enter Language Type :')

df1=df[df.language==lang1]

print('Top 20 Movies Based on Rating | Language :',lang1)

print('-'*120)

print(df1.sort_values(by='vote_average', ascending=False).head(20))

print('\n\n\n Press any key to continue....')

if ch==6:

print(df.describe())

print("\n\n\nPress any key to continue....")

if ch==7:

while True:

print('\nGRAPH MENU ')


print('_'*100)

print('1. Whole Data LINE Graph\n')

print('2. Whole Data Bar Graph\n')

print('3. Whole Data Bar Graph- Horizontal\n')

print('4. Exit (Move to main menu)\n')

ch = int(input('Enter your choice:'))

if ch == 1:

%matplotlib inline

x=(df.M_title)

y=(df.vote_count)

plt.xlabel('Language')

plt.ylabel('Total Movies')

plt.title('Language wise movies count')

plt.plot(x,y)

plt.show()

if ch == 2:

%matplotlib inline

g = df.groupby('language')

x = df['language'].unique()

y = g['language'].count()

#plt.xticks(rotation='vertical')

plt.xlabel('Language')
plt.ylabel('Total Movies')

plt.title('Language wise movies count')

plt.bar(x, y)

plt.show()

if ch == 3:

g = df.groupby('language')

x = df['language'].unique()

y = g['language'].count()

#plt.xticks(rotation='vertical')

plt.xlabel('Language')

plt.ylabel('Total Movies')

plt.title('Language wise movies count')

plt.barh(x, y)

plt.show()

if ch == 4:

break

#OUTPUT

Data Analysis MENU

1. Show Whole Data Frame


2. Show Columns
3. Update a Record
4. Rating Wise Report

5. Language wise Report

6. Data Summery

7. graph menu

Enter your choice:

Enter your choice:1


index M_title \
0 0 Ad Astra
1 1 Bloodshot
2 2 Bad Boys for Life
3 3 Ant-Man
4 4 Percy Jackson: Sea of Monsters
5 5 Birds of Prey (and the Fantabulous Emancipatio...
6 6 Live Free or Die Hard
7 7 Cold Blood
8 8 Underwater
9 9 The Platform
10 10 Jumanji: The Next Level

overview language vote_count


\
0 The near future, a time when both hope and har... en 2853
1 After he and his wife are murdered, marine Ray... en 1349
2 Marcus and Mike are forced to confront new thr... en 2530
3 Armed with the astonishing ability to shrink i... en 13611
4 In their quest to confront the ultimate evil, ... en 3542
5 Harley Quinn joins forces with a singer, an as... en 2639
6 John McClane is back and badder than ever, and... en 3714
7 A legendary but retired hit man lives in peace... fr 119
8 After an earthquake destroys their underwater ... en 584
9 A mysterious place, an indescribable prison, a... es 1924
10 As the gang return to Jumanji to rescue one of... en 2974

vote_average
0 5.9
1 7.2
2 7.1
3 7.1
4 5.9
5 7.1
6 6.5
7 5.1
8 6.5
9 7.2
10 6.8

Enter your choice:2


Index(['index', 'M_title', 'overview', 'language', 'vote_count',
'vote_average'],
dtype='object')

Enter your choice:4


Top 20 Movies Based on Rating
--------------------------------------------------------------------------
----------------------------------------------
index M_title \
9 9 The Platform
1 1 Bloodshot
3 3 Ant-Man
5 5 Birds of Prey (and the Fantabulous Emancipatio...
2 2 Bad Boys for Life
10 10 Jumanji: The Next Level
6 6 Live Free or Die Hard
8 8 Underwater
4 4 Percy Jackson: Sea of Monsters
0 0 Ad Astra
7 7 Cold Blood

overview language vote_count


\
9 A mysterious place, an indescribable prison, a... es 1924
1 After he and his wife are murdered, marine Ray... en 1349
3 Armed with the astonishing ability to shrink i... en 13611
5 Harley Quinn joins forces with a singer, an as... en 2639
2 Marcus and Mike are forced to confront new thr... en 2530
10 As the gang return to Jumanji to rescue one of... en 2974
6 John McClane is back and badder than ever, and... en 3714
8 After an earthquake destroys their underwater ... en 584
4 In their quest to confront the ultimate evil, ... en 3542
0 The near future, a time when both hope and har... en 2853
7 A legendary but retired hit man lives in peace... fr 119

vote_average
9 7.2
1 7.2
3 7.1
5 7.1
2 7.1
10 6.8
6 6.5
8 6.5
4 5.9
0 5.9
7 5.1

Enter your choice:5


Available Languages : ['en' 'fr' 'es']

Enter your choice:7

GRAPH MENU

1. Whole Data LINE Graph

2. Whole Data Bar Graph

3. Whole Data Bar Graph- Horizontal

4. Exit (Move to main menu)

Enter your choice:


Enter your choice:1

Enter your choice:2


Enter your choice:3

You might also like