You are on page 1of 22

Informatics Practices

Project File
Class 12

NAME- Cheshta Gupta


CLASS- XII
CBSE ROLL NO.-
SCHOOL- Basava International School
SUBJECT TEACHER- Parnita Gupta
INFORMATICS PRACTICES
PRACTICAL FILE
CLASS – 12TH

PROJECT TITLE : Korean Drama Analysis

CONCEPTS USED : Pandas, Matplotlib,


CSV

COMPILER VERSION : PYTHON 3.11

SUBMITTED TO : Ms. Parnita Gupta

DEVELOPED BY : Cheshta Gupta, XII-D


INDEX
CERTIFICATE

This is to certify that KOREAN DRAMA ANALYSIS


Informatics practices project is developed by CHESHTA
GUPTA under my supervision in the computer lab of
BASAVA INTERNATIONAL SCHOOL in the session
2023-2024. The work done by her is original.

Teacher-in-charge External
Examiner
ACKNOWLEDGEMENT
I would like to express my special thanks of gratitude to
my teacher Ms. Parnita Gupta as well as our Principal Ms.
Manimala Roy, who gave me the golden opportunity to
do this wonderful project on the topic KOREAN DRAMA
ANALYSIS which also helped me in doing a lot of research
and I came to know about so many new things. I would
also like to thank my parents, who helped me 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 I have learned. There are approximately 10
operations done on the selected dataset

TEAM MEMBER:
Cheshta Gupta (12TH D)

MEMBER DETAIL:
This project is developed by Cheshta Gupta. All the
operations are completed by me as per my learning.
It took approximately two weeks to develop this
project.
Reason For Choosing
The Topic
A Korean drama more popularly known K-drama, is
a type of television series in the Korean language
made in South Korea. They are popular worldwide,
especially in Asia, partially due to the sudden craze
of Korean Culture and their widespread availability
via streaming services, which often offer subtitles in
multiple languages. The reason for choosing this
topic was to study information about each K drama
taken in the Dataset as well as making a user-
friendly menu in which people can know more
about Korean Dramas and their details.
HARDWARE REQUIREMENTS:
⦁ A Computer/Laptop with Operating System
⦁ Windows 10 or above
⦁ 70.0 KB (71,682 bytes) RAM and 72.0 KB
(73,728 bytes) disk space
⦁ Python 3.8.3 or higher version

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_6080170998043251423.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 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()

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

You might also like