Professional Documents
Culture Documents
Informatics Practices - File As Per Cbse
Informatics Practices - File As Per Cbse
Project File
Class 12
INDEX
S.NO. CONTENTS
1. Certificate
2. Acknowledgement
3. Data Collection
4. References
5. Project Synopsis
6. Reasons for choosing the
topic
7. a) hardware requirements
b) software requirements
C) Limitations
8. Source code
9. OUTPUTS to the source code
CERTIFICATE
Teacher-in-charge
External Examiner
ACKNOWLEDGEMENT
We would like to express our special
thanks of gratitude to our teacher Ms.
Parnita Gupta as well as our Principal
Ms. Manimala Roy, who gave us the
golden opportunity to do this wonderful
project on the topic KOREAN DRAMA
ANALYSIS which also helped us in doing
a lot of research and we came to know
about so many new things. we would
also like to thank our parents, who
helped us a lot in finishing this project
within the Time limit.
DATA COLLECTION
The data is an extract from a dataset from the
website of Kaggle
(https://www.kaggle.com/datasets), which
contains various types of DataFrames. This dataset
contains more than 100 Korean Dramas to explore.
The various columns are:
• Name: Korean Drama name
• Year of release: Release year of the drama
• Aired Date: Aired Date (start) - (end)
• Aired On: Aired on what day(s) of the week
• Number of Episode: How many episodes are there
• Network: What Network is the drama aired on
• Duration: How long is one episode approximately
• Content Rating: Content rate for appropriate audience
• Synopsis: Short story of the drama
• Cast: Actors and Actresses in the drama
• Genre: Genre that the drama is listed in
Tags: Tags that the drama is listed in
Rank: Ranking on the website.
Rating: Rating by the users on the website out of ten
PROJECT SYNOPSIS
PROJECT TITLE:
Korean Drama Analysis
PROBLEM DEFINATION:
The project has been made to use and check the
codes we have learned. There are approximately 10
operations done on the selected dataset
TEAM MEMBER:
Cheshta Gupta (12TH D), Kumud(12TH C), Devansh
Sehrawat(12TH C)
MEMBER DETAIL:
This project is developed by Cheshta
Gupta, Kumud and Devansh Sehrawat.
All the operations are completed by as
per our learning. It took approximately
two weeks to develop this project.
SOFTWARE REQUIREMENTS:
⦁ NumPy
⦁ Pandas Library preinstalled
⦁ Matplotlib Library preinstalled
⦁ Imported csv files
LIMITATIONS:
⦁ It is not a web-based project.
⦁ More functionality can be added as per
requirement.
⦁ No provision to print hard copies.
CODES
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
df1 =
pd.read_csv("C:/Users/dell/Downloads/5_6080
170998043251423.csv")
y=0
while y == 0:
print('!~~~~Welcome to the K-drama
menu~~~~!')
print('Please enter a number')
print('Press 1 to display entire data')
print('Press 2 to display specific top or
bottom entries')
print('Press 3 to iterate the dataframe')
print('Press 4 to display the max/min value
of each column')
print('Press 5 to display the date of airing')
print('Press 6 to view the duration graph')
print('Press 7 to access a particular field')
print('Press 8 to delete a row/column')
print('Press 9 to group the values by their
genre')
print('Press 10 to show the episode graph')
Print(‘press 11 to add data’)
Print(‘press 12 to delete all the data’)
print('Press 0 to exit')
x = int(input("Enter no.-"))
if (x == 1):
print(df1)
elif (x == 2):
g = input("Enter t for top or b for bottom-")
if (g == 't'):
f = int(input('Enter no. of entries-'))
print(df1.head(f))
else:
j = int(input('Enter no. of entries-'))
print(df1.tail(j))
elif (x == 3):
u = input('Enter r for rows or c for
columns-')
if (u == 'r'):
for index, row in df1.iterrows():
print(row)
else:
for col, values in df1.iteritems():
print(f"Column: {col}")
print(values)
elif (x == 4):
ml = int(input('Enter 11 for max or 12 for
min values-'))
if(ml==11):
print(df1.max())
else:
print(df1.min())
elif (x == 5):
print(df1['Aired Date'])
elif (x == 6):
type1 = input('Enter the type of
graph(bar/pie/plot)-')
if (type1 == 'plot'):
ls1 = input('Enter the linestyle
(dotted/solid/dashed/dashdot/none)-')
color1 = input('Enter the color name-')
plt.plot(df1['Name'], df1['Year of
Release'], color=color1, linestyle=ls1,
marker='*')
plt.xlabel("Names")
plt.ylabel('Year of Release')
plt.show()
elif (type1 == 'bar'):
color1 = input('Enter the colour name-
')
plt.bar(df1['Name'], df1['Year Of
Release'], color=color1)
plt.xticks(rotation=45)
plt.xlabel('Names')
plt.ylabel('Year of Release')
plt.show()
else:
plt.pie(df1['Number of Episode'],
labels=df1['Name'], startangle=90,
shadow=True)
plt.title('Episodes')
plt.legend()
plt.show()
elif (x == 7):
print('columns=', df1.columns)
print('rows=', df1.index)
z = input('Enter column index-')
a = int(input('Enter row index-'))
b = df1.at[a, z]
print(b)
elif (x == 8):
klj = input('Enter r for rows or c for
columns-')
if klj == 'r':
row1 = int(input('Enter the row
index(0-9)-'))
df1 = df1.drop(df1.index[row1])
print(df1)
else:
print(df1.columns)
coll = int(input('Enter the column
index(0-7)-'))
df1 = df1.drop(df1.columns[coll],
axis=1)
print(df1)
elif (x == 9):
g1 = df1.groupby('Genre')
print(g1.count())
elif (x == 10):
plt.barh(df1['Name'], df1['Number of
Episode'], color='pink')
plt.xlabel('Name')
plt.ylabel('Number of Episodes')
plt.show()
elif( x==11):
Tt1 = int(‘enter the data’)
Tt2 = df1.append(Tt1,Index=True)
print( Tt2)
elif( x ==12):
Tt3 = df1.drop
else:
print('Thank you!')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OUTPUT
Menu 1
Menu 2
Menu 3
Menu 4
Menu 5
Menu 6
Menu 7
Menu 8
Menu 9
Menu 10
Menu 11
Menu 12