0% found this document useful (0 votes)
9 views

Rutu Project Ip

ip investigatory project

Uploaded by

m8333792
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
9 views

Rutu Project Ip

ip investigatory project

Uploaded by

m8333792
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 30
@ SE yh REE Vasigrya vDYS CERTIFICATE This is to certify that, RUTU PATIL, student of Class 12th has successfully completed the CBSE INFORMATIVE PRACTICES Investigatory project under the guidance of Ms.Saleha Naz,for the academic year 2024-25. External Examiner InternalExaminer Principal Acknowledgement I would like to express my special thanks of gratitude to our principal Ms. Shubhra Srivastava for her encouragement and for all the facilities that she provided for this project work, I extend my hearty thanks to Ms.Saleha Naz, Informatic Practices teacher, who guided me to the successful completion of this project. I take this opportunity to express my deep sense of gratitude for his guidance, constant encouragement, constructive comments, sympathetic attitude and immense motivation, which has sustained my efforts at all stages of this project work. I would like to thank my parents and friends who helped me in finalizing this project. INDEX 1.REQUIREMENTS 2.INTRODUCTION 3.OVERVIEW OF PYTHON 4,OVERVIEW OF CSV 5.SOURCE CODE 6.CSV TOUTPUT 8.BIBLIOGRAPHY REQUIREMENTS - Front end: Python 3.10 64Bits - Back end: Csvfile.(excel) - Operating Software : Windows 10 INTRODUCTION This project is made for society literacy rate analysis of the year 2024-25. We use the python library to analyse the data in the form of graphs and tables using matplotlib and pandas. | have collected the following information about society literacy rate and made the following csv and source code. OVERVIEW OF PYTHON - Python works on different platforms(Windows,Mac,Linux,Raspberry Pi,etc). - Python has a simple syntax similar to the English Language. - Python has syntax that allows developers to write programs with fewer lines than some other programming languages. - Python runs on an interpreter system, meaning that code can be executed as soon as it is written This means that prototyping can be very quick. - Python can be treated in a procedural way, an object-oriented way or a functional way. OVERVIEW OF CSV - A Comma_Seperated values(CSV) file is a delimited text file that uses a comma to separate values. Each line of the file is a data record. Each record consists of one or more fields, separated by commas. The use of the comma as a field separator is the source of the name for this file format. A CSV file typically stores tabular data(numbers and text) in plain text, in which case each line will have the same numbers of fields. - The CSV file format is not fully standardized. Separating fields with commas is the foundation, but commas in the data or embedded line breaks have to handled specially. Some implementations disallow such content while others surround the field with quotation marks, which yet again creates the need for escaping if quotation marks are present in the data. - The term “CSV” also denotes several closely-related delimiter-separated formats that use other fields delimiters such as semicolons. These include tab-separated values and space-separated values. import pandas as pd import matplotlib.pyplot as plt import numpy as np import sys,os ymatplotlib inline def menuset(): opt="" print() print("*" * 37 ,"cafe Management System" ,"A" * 37) print('1.show menu’ ) print('2.Data Visualization\n' ) print('3.Analysis\n' ) print('4.add item\n') print('5.Exit\n') opt = int(input('Enter your choice:')) if opt==1: read_csv() elif opt==2: visuals() elif opt==3: analysis() elif opt==4: manipulation( ) elif opt==5: print('Thanks' ) exit() BREAD (OS ossceeoamteteaisie Gaia atRiais Gala GUTS URES GENRES lace def read_csv(): print("A" * 43 ,"Read_csv Menu" ,"A"* 43) a = pd.read_csv('vr.csv') print(a) menuset() ZDATA ‘VISUALIZATION: «0 19:0 ven wea Re OEE def def def visuals(): opt="" print() print("A" * 38 ,"Data Visualization Menu" ,"4" * 38) print('1.Line Chart\n') print('2.Bar Chart\n') print('3.Pie Chart\n') print('4.Exit\n') opt = int(input('Enter your choice:')) if opt==1: line() if opt==2: bar() if opt==3: pie() if opt==4: a = input('Press m For Main Menu\nPress e For Exit\n if a == 'm': menuset () if a == ''e': print('Thanks!!') exit() line(): line = pd.read_csv('vr.csv') df = pd.DataFrame( line) x = df.itemname y = df.price plt.plot(x,y,marker="*",markersize='20') plt.grid() plt.xlabel('item name') plt.ylabel('price') plt.title('price analysis') plt.show( ) menuset() bar(): bar = pd.read_csv('vr.csv') df = pd.DataFrame(bar ) x = df.itemname y = df.review plt.bar(x,y) plt.xlabel('item name’) plt.ylabel('review' ) plt.title('review analysis’) pnlt.show(/ ) def menuset() pie(): pie = pd.read_csv('vr.csv') df = pd.DataFrame(pie) fig = plt.figure() ax = fig.add_axes([0,0,1,1]) ax.axis('equal') x = df.price y = df.itemname ax.pie(x,labels=y, autopct='%1.2f%%' ) plt.title("item wise price analysis") plt.show( ) menuset() WDATA ANALYSES 059003 wn am eee mu e anes def def analysis(): opt="" print() print("A" * 40 ,"Data Analysis Menu" ,"A" * 40) print('1.Top Records\n') print('2.Bottom Records\n') print('3.To Print Particular Column\n') print('4.To Print Multiple Columns\n') print('5.To Display Complete Statistics(Aggregate Functi print('6.Exit\n') opt = int(input('Enter your choice:')) if opt==1: top() elif opt== bottom() elif opt== single_column() elif opt== multiple_column() elif opt==5: aggregate() elif opt== a = input('Press m For Main Menu\nPress e For Exit\n if a == ''m': menuset() if a == 'e': print('Thanks!!') exit() top(): def def def def def top(): top = pd.read_csv('vr.csv') print(top.head(5)) menuset() bottom(): bottom = pd.read_csv('vr.csv') print(bottom.tail(5)) menuset () single_column(): single = pd.read_csv('vr.csv') df = pd.DataFrame(single) print(df.columns) c = input('Enter Column Name: ') print(df[c]) menuset() multiple_column(): multiple = pd.read_csv('vr.csv') df = pd.DataFrame(multiple) print (df .columns) c = eval(input('Enter Columns Names[]:')) print(df[c]) menuset () aggregate(): aggregate = pd.read_csv('vr.csv') df = pd.DataFrame(aggregate) print('1.Maximun' ) print('2.Minimum' ) print('3.Mean') print('4.Count') d = int(input('Enter Your Choice:')) if d==1: print(df.columns) e = input('Enter Column Name For Max Value:') print('Maximum Value of',e,'=',df[[e]].max()) menuset() elif d==2: print(df.columns) e = input('Enter Column Name For Min Value: ') print('Minimum Value of',e,'=',df[[e]].min()) menuset() elif d==3: print(df.columns) e = input('Enter Column Name For Mean Value: ') print('Mean Value of',e,'=',df[[e]].mean()) menuset() elif d==4: print('Total Number of Records=',df.count(axis=0) ) menuset() def manipulation(): opt="" print() print("\" * 38 ,"Data Manipulation Menu" ,"A"* 38) print('1.Insert A Row\n') print('2.Delete A Row\n') print('3.Exit\n') opt = int(input('Enter your choice:')) if opt==1: add = pd.read_csv('vr.csv') df = pd.DataFrame(add) print(df.columns) add1 = eval(input('Enter Values For Columns:[]')) df.loc{len(df.index)] = add1 print(df) df.to_csv('vr.csv') #nd=pd. read_csv( 'new.csv') #print(nd) menuset() elif opt==2: drop = pd.read_csv('vr.csv') df = pd.DataFrame(drop) print(df) drop1 = int(input('Enter Row Index To Delete:')) df = df.drop(df.index[drop1]) df.to_csv('vr.csv') print(df) menuset() elif opt==3: print('Thanks!!') exit() menuset() ADA AA AADAAAAADAAAAAAADADAADADAAAAAAN Cafe Management Syste m_ AAAAAAAAAAAAAAAAARARAAAAAAAAARAAAARAA 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:1 AANAAAAAAAARARAAARAARAARAANRAAAAARAAARANADAAAAA Read csv Menu “ AAAAAAAARAAAAAAAARAARAAAAAAAAAARAAAAAAAAAAA no date itemname price re view 0 1 23-09-2024 oreo waffle 230 good 1 2 02-10-2024 bubble tea 350 very good 2 3 30-10-2024 biscoff chesse cake 450 nice 3 4 07-08-2024 blue berry chesse cake 550 not nice 4 5 13-08-2024 kitkat pancake 210 not be tter 5 6 26-09-2024 red velvet waffle 450 little bi tter DADA AAA AAAADADADAAAAAAAADAAAAAAAAAANA Cafe Management Syste M AAAAAAADAADAAAAAADAADADADAAAADAAALRADADALRN 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:2 AAADAADAAAARAAAAAAAAAAAAAADAAAAAAAAAAA Data Visualization M ENU AAAAAAAAAAAAADAAAAAAAAAAAD AAD AAAADAALAA 1.Line Chart 2.Bar Chart 3.Pie Chart 4.Exit Enter your choice:1 price analysis 550 4 500 + 450 4 400 5 price 350 + 300 4 250 7 200 + + ; 7 +r + + oreo waffle bubble téascoff chet#eealerry chessckitaiae pancatea! velvet waffle item name AAAAAAAAAAADADADADADAAAAAAAAAAAAAAANA Cafe Management Syste M AAAAAAAAADADAAADAAAAAAAADAAADAAADADAADALN 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:2 AAAAAADAADADDAAAADAADAADAADAAAAAAAAAAA Data Visualization M ENU AAAAAAAADAAAARAAAAADAADAADAAADAAAADAARA 1.Line Chart 2.Bar Chart 3.Pie Chart 4. Exit Enter your choice:2 review analysis little bitter + not better 4 not nice 4 review nice + very good 4 good oreo waffle bubbletisaoff chekse may cheskitkatkpancetivelvet waffle item name ADADAAAAAAAAADAAAAAADADADAADAAAADAADAN Cafe Management Syste M_ AAAAAAAAADAAAAAAAAAAAADAAAAAARAAAAAAA 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:2 AAARAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAN Data Visualization M ANU AAAAAAAADAAAAAAAAADADAAADAAADADADALAAAL 1.Line Chart 2.Bar Chart 3.Pie Chart 4. Exit Enter your choice:3 item wise price analysis bubble tea biscoff chesse cake oreo waffle blue berry chesse cake red velvet waffle kitkat pancake ADARDADAAAADAA ADA AADADDADAAAADADAAANA Cafe Management Syste Mm AAAAAAAAAAAAAAAADAADARAAAAAAAADAAAARAA 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:2 AA AAA AAAAAAAAAAAAAAADAAAAAAAAARAAAAAAA Data Visualization M ENU AAAAAAAAAAAAAAADAADADADARARADAAAADAAAA 1.Line Chart 2.Bar Chart 3.Pie Chart 4.Exit Enter your choice:4 Press m For Main Menu Press e For Exit m AD ADADAAAAAADAADARAAAAAAAADAAAADAAANN cafe Management Syste M AAAAAAAAAAAAAAADAARADAARAAAADA AAR ARAL 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:3 AAAAAAA AAA AAA AAA AA AAA AAAADAAAAARAAAAAAAN Data Analysis Menu AARAAAARAAAA AD AAA AA AAAAAAAAAAA AA AAA ARAMA 1.Top Records 2.Bottom Records 3.To Print Particular Column 4.To Print Multiple Columns 5.To Display Complete Statistics(Aggregate Functions) 6.Exit Enter your choice:1 no date itemname price revie ° 1 23-09-2024 oreo waffle 230 goo : 2 02-10-2024 bubble tea 350 very goo 3 3 30-10-2024 biscoff chesse cake 450 nic 3 4 07-08-2024 blue berry chesse cake 550 not nic e Wl O < 3ST ROWANA 3 30-10-2024 biscoff chesse cake 450 nic 4 07-08-2024 blue berry chesse cake 550 not nic 5 13-08-2024 kitkat pancake 210 not bette ARADADAAAAADAAAADADADADDDADADADAAAAAA Cafe Management Syste MM AAAAAAAAAAAAADAAADAADADAAAAAAAAAAADAADAK, 4. 5. «show menu .Data Visualization .Analysis add item Exit Enter your choice:3 AADAD DAD AAARADAAAADAADADAAAAAAAAAAAAAAAN Data Analysis Menu AKARAAAAAAARARAKRADRAAARAARAARAARAARAARAAARAAN 1 -Top Records 2.Bottom Records 3.To Print Particular Column 4.To Print Multiple Columns 5.To Display Complete Statistics(Aggregate Functions) 6.Exit Enter your choice:2 no date itemname price re view 1 2 02-10-2024 bubble tea 350 very good 2 3 30-10-2024 biscoff chesse cake 450 nice 3 4 07-08-2024 blue berry chesse cake 550 not nice 4 5 13-08-2024 kitkat pancake 210 not be tter 5 6 26-09-2024 red velvet waffle 450 little bi tter ARADAAAADAADDADADADADAADDADADADAAAAAA Cafe Management Syste M_ AAAAARAAARADADAADAAADADAARARARADADADAR 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:3 ARADADD AD ADD AD ADDADADDADDDAAADDDAAAAAAADN Data Analysis Menu ARAAAAARAAAR AA AD AD AD ADADADARADADAADA AA ADA 1.Top Records 2.Bottom Records 3.To Print Particular Column 4.To Print Multiple Columns 5.To Display Complete Statistics(Aggregate Functions) 6.Exit Enter your choice:3 Index(['no', ‘'date', 'itemname', 'price', 'review'], dtype ='object') Enter Column Name:price 0 230 1 350 2 450 3 550 4 210 5 450 Name: price, dtype: int64 ARAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAA Cafe Management Syste M AAAAAAAAARAAAAAAAAAAAAAARARAAAAAAAAAA 1.show menu 2.Data Visualization 3.Analysis 4.add item 4.add item 5.Exit Enter your choice:3 ADAAAADAAAAAAAAAAAAAADAADADADADAAAAAAAAA Data Analysis Menu AAAKAAAAAKARANAAAAAAADAAAAAAARAAAAAADAAAALKA 1.Top Records 2.Bottom Records 3.To Print Particular Column 4.To Print Multiple Columns 5.To Display Complete Statistics(Aggregate Functions) 6.Exit Enter your choice:4 Index(['no', 'date', 'itemname', 'price', 'review'], dtype ='object') Enter Columns Names[]:['price', 'review' ] price review 0 230 good 1 350 very good 2 450 nice 3 550 not nice 4 210 not better 5 450 little bitter ARADADAADADDDADADADADDDDDADADADAAAAAA Cafe Management Syste MM AAAAAAAAADRADADAAADADADADAADADADADADAL, 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:3 ADADAD ADD ADA DADA ADADADAADADADADAADAAAAAA Data Analysis Menu ARAAAADAAAAAAAAAAAAAADAAAAA ADA AAAA ADA AAA ADADAD AAD ADA DAD AAD ADADAADADADADAADADAAAA Data Analysis Menu AKARAKAAAAARAAKRAADARAARAARARAARAARAARAAARAAN 1.Top Records 2.Bottom Records 3.To Print Particular Column 4.To Print Multiple Columns 5.To Display Complete Statistics(Aggregate Functions) 6.Exit Enter your choice:5 1.Maximun 2.Minimum 3.Mean 4.Count Enter Your Choice:1 Index(['no', ‘'date', 'itemname', 'price', 'review'], dtype ='object') Enter Column Name For Max Value:price Maximum Value of price = price 550 dtype: int64 AR ADA ARAAAADDAAAAADADAAADAAADADAAAAAA Cafe Management Syste M_ AAAAAAAAAADAAAAAAAAAAAADAAAAAAAAAAAAAAL, 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:3 AADAD DADA AAA AA AA AAD ADD ADAAAAAAAAAAAAAAAN Data Analysis Menu AAAAAADAA AAA AA AAA AAAA AAA AAA ADA AAA AAA AAA, 1.Top Records 2.Bottom Records 3.To Print Particular Column 3.To Print Particular Column 4.To Print Multiple Columns 5.To Display Complete Statistics(Aggregate Functions) 6.Exit Enter your choice:5 1.Maximun 2.Minimum 3.Mean 4.Count Enter Your Choice:2 Index(['no', 'date', 'itemname', 'price', 'review'], dtype ='object') Enter Column Name For Min Value:price Minimum Value of price = price 210 dtype: int64 ADADAD AAA AD ADADADAAAADAADADADADAAAAAA cafe Management Syste M AAADAAAAANADADAAAARDDADAAARARADADDDARAN 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:3 ADADAD AAA AA ADAD AAD ADADAADADADADAAAAAAAAN Data Analysis Menu ARAAAADAAAAAAAAAAAAAAAAAAAA ADA AAAAAAA AAA, 1.Top Records 2.Bottom Records 3.To Print Particular Column 4.To Print Multiple Columns 5.To Display Complete Statistics(Aggregate Functions) 6.Exit Enter your choice:5 1.Maximun 2.Minimum 3.Mean 4.Count Enter Your Choice:3 Index(['no', 'date', 'itemname', ‘price', 'review'], dtype ='object') Enter Column Name For Mean Value:price Mean Value of price = price 373 . 333333 dtype: float64 AAADADADADADAADAAADDAAADAAADAAAAAADAA Cafe Management Syste M_ AAAAAAAAAAAAAAARAAAARAAARRAAARAAARAAR 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:3 AAA AAA AAD AAAADDAAADAADADADAADAAAAAAADA Data Analysis Menu ARAAKANRAAAADRAANRAAAKRAKARAAAKRARADRAAADRAAARLN 1.Top Records 2.Bottom Records 3.To Print Particular Column 4.To Print Multiple Columns 5.To Display Complete Statistics(Aggregate Functions) 6.Exit Enter your choice:5 1.Maximun 2.Minimum 3.Mean 4.Count Enter Your Choice:4 Total Number of Records= no 6 date itemname price review dtype: int64 6 6 6 6 AAAAAADAAAARAAAADADAADAADADADAAAAAAAN Cafe Management Syste Mm AAAAAAAAANAADAAAAARAAAAAARAAAAAAAAAAL 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:4 AA AAAAADAARAAADAAAADAADAAAAAADAAAAAAAAN Data Manipulation Me NU AAAAAAAAADADAAADADADADAARADAAAARADARARA 1.Insert A Row 2.Delete A Row 3.Exit Enter your choice:1 Index(['no', ‘'date', ‘itemname', 'price', 'review'], dtype ='object') Enter Values For Columns:[][7,'23-09-24', bubble tea',21 0,'good"] no date itemname price re view 0 1 23-09-2024 oreo waffle 230 good 1 2 02-10-2024 bubble tea 350 very good 2 3 30-10-2024 biscoff chesse cake 450 nice 3 4 07-08-2024 blue berry chesse cake 550 not 2 3 30-10-2024 biscoff chesse cake 450 nice 3 4 07-08-2024 blue berry chesse cake 550 nice 4 5 13-08-2024 kitkat pancake 210 tter 5 6 26-09-2024 red velvet waffle 450 lit tter 6 7 23-09-24 good bubble tea 210 not not be tle bi AADAARADA AAA AAAAAAADAAAAAAAADAAAAAAAN Cafe: Management Syste M_ AAAAAAAAAARAAAAAAAAAADADAAAAAAAAAAADAAAK, 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:4 AADAD DADA DARA AAA AADADAADAAADAADAAAAAAN Data Manipulation Me NU AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAA AAA 1.Insert A Row 2.Delete A Row 3.Exit Enter your choice:2 Unnamed: 0 no date e review 0 0 1 23-09-2024 0 good 1 1 2 02-10-2024 0 very good 2 2 3 30-10-2024 0 nice 3 3 4 07-08-2024 0 not nice 4 4 5 13-08-2024 ) not better 5 5 6 26-09-2024 0 little bitter 6 6 7 23-09-24 itemname oreo waffle bubble tea biscoff chesse cake blue berry chesse cake kitkat pancake red velvet waffle bubble tea pric 23 35 45 55 21 45 21 6 6 7 23-09-24 bubble tea 21 0 good Enter Row Index To Delete:6 Unnamed: 0 no date itemname pric e review 0 0 1 23-09-2024 oreo waffle 23 0 good 1 1 2 02-10-2024 bubble tea 35 0 very good 2 2 3 30-10-2024 biscoff chesse cake 45 0 nice 3 3 4 07-08-2024 blue berry chesse cake 55 0 not nice 4 4 5 13-08-2024 kitkat pancake 21 0 not better 5 5 6 26-09-2024 red velvet waffle 45 0 little bitter AAAADAADAADAAAAADADAALAAADADAADAAAAAN Cafe Management Syste M_ AAAAAAAADAADAADAADAADARAADAADAADAADAA 1.show menu 2.Data Visualization 3.Analysis 4.add item 5.Exit Enter your choice:4 ARAARAARAARAARAARAADAADADAADDAAAAAAAAA Data Manipulation Me NU AAAAAAARAARAARAA AAA AAA AAR AARAARAARAARA 1.Insert A Row 2.Delete A Row 3..EXit Enter your choice:3 Thanks! ! Renate price blue berry chees: oreo thickshake fruit bubble tea tiramisu cake biscoff cheese cz double chocolate tale) alo ire} red velvet waffle taro bubble tea 10 hot sizzling brow Co: iis eo? ©) Me © iCo) ag 230 good 300 very good 450 excellent 320 nice io OM Ooms 200 good 250 improve more 110 very nice 350 excellent 400 little bitter BIBLIOGRAPHY Informatics Practices with Python — PREETI ARORA Document references — www.github.com Code references — www.stackoverflow.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy