0% found this document useful (0 votes)
25 views20 pages

Ip Practical Shubham PDF

This document is a practical file for Informatics Practices for the session 2024-25 at SBIOA Public School, created by Shubham Fauzdar. It includes acknowledgments, data handling tasks using pandas, data visualization exercises, and data management SQL queries, covering topics such as creating data frames, filtering data, and performing SQL operations. The document serves as a comprehensive guide for students to practice and apply their knowledge in data handling and management.

Uploaded by

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

Ip Practical Shubham PDF

This document is a practical file for Informatics Practices for the session 2024-25 at SBIOA Public School, created by Shubham Fauzdar. It includes acknowledgments, data handling tasks using pandas, data visualization exercises, and data management SQL queries, covering topics such as creating data frames, filtering data, and performing SQL operations. The document serves as a comprehensive guide for students to practice and apply their knowledge in data handling and management.

Uploaded by

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

SBIOA PUBLIC SCHOOL

PRACTICAL FILE
INFORMATICS PRACTICES
SESSION - 2024-25

SHUBHAM FAUZDAR
XII SCI
ACKNOWLEDGEMENT

I want to express my deepest appreciation to those


individuals who played crucial roles in the successful
completion of my project.
First and foremost, I want to extend my sincere gratitude
to my devoted Subject Teacher, Mr Kapil Paliwal, whose
constant support and encouragement were incredibly
valuable throughout the project.
I also want to thank Principal Mrs Preeti Sharma for
creating an environment that values academic
exploration and for providing the necessary resources.
DATA HANDLING
Q.1 Create a panda’s series from a dictionary of values and
a ndarray.
Q.2 Create a Data Frame quarterly sales where each row
contains the item category, item name, and expenditure.
Group the rows by the category, and print the total
expenditure per category.
Q.3 Create a data frame for examination result and
display row labels, column labels data types of each
column and the dimensions.
Q.4 Filter out rows based on different criteria such as
duplicate rows.
Q.5 Importing and exporting data between pandas and
CSV file.
VISUALIZATION

Q.1 Given the school results data, analyse the


performance of the students on different parameters, eg
subject wise or class wise.
Q.2 For the Data frames created above, analyse and plot
apropriate charts with title and legends.
Q.3 Take data of your interest from an open source (eg
data.gov.in) aggregate and summarise it. Then plot it
using different plotting function of the Matplotlib library.
DATA MANAGEMENT
Q.1 Create a table with the student ID, name, and marks
as attributes where the student ID is the primary key.

CREATE TABLE students

ID int primary key, NAME varchar(20) ,

GENDER varchar(1),SECTION varchar(1),

STREAM varchar(10),MARKS int

);

Q.2 Insert the details of a new student in the above table.

INSERT INTO students VALUES (1, 'Churan','M','C','CEC','74');

INSERT INTO students VALUES (2, 'Jahnvi','F','A','MPC','85');

INSERT INTO students VALUES (3, 'Eddie','M','B','BiPC','96');

INSERT INTO students VALUES (4, 'Naitik','M','B','BiPC','98');

INSERT INTO students VALUES (5, 'Naksh','M','D','MEC','81');

INSERT INTO students VALUES (6, 'Prakhar','M','C','CEC','91');

INSERT INTO students VALUES (7, 'Geeta','F','E','HEC','85');

INSERT INTO students VALUES (8, 'Abhay','M','A','MPC','56');

INSERT INTO students VALUES (9, 'Vaidik','M','D', 'MEC','72');

INSERT INTO students VALUES (10, 'Vaibhav','M', 'E','HEC','69');


INSERT INTO students VALUES (11, 'Sridevi','F', 'C','CEC','34');
select * FROM students;
Q.3 Delete the details of a student in the above table.

delete from students where ID = 11;

Q.4 Use the select command to get the details of the


student with marks more than 80.

SELECT * FROM STUDENTS WHERE MARKS>80;

Q.5 Find the min, max, sum and average of the marks in
the student table.

SELECT min(MARKS),max(MARKS),sum(MARKS),avg(MARKS) FROM students;


Q.6 Find the total no. of customers from each country in
the table(customer ID, customer name, country) using
group by.

CREATE TABLE customer (


Customer_ID int,
Customer_Name VARCHAR(15),
country VARCHAR(15)
);
INSERT INTO customer VALUES (1, 'Alice', 'USA');
INSERT INTO customer VALUES (2, 'Bob', 'Canada');
INSERT INTO customer VALUES (3, 'Charlie', 'USA');
INSERT INTO customer VALUES (4, 'David', 'Canada');
INSERT INTO customer VALUES (5, 'Eve', 'Mexico');
INSERT INTO customer VALUES (6, 'Frank', 'Mexico');
INSERT INTO customer VALUES (7, 'George', 'USA');
INSERT INTO customer VALUES (8, 'Helen', 'Canada');
INSERT INTO customer VALUES (9, 'Ivan', 'Mexico');
INSERT INTO customer VALUES (10, 'Jack', 'USA');
INSERT INTO customer VALUES (11, 'Kate', 'Canada');
INSERT INTO customer VALUES (12, 'Louis', 'Mexico');
SELECT * FROM customer;

SELECT country, count(*) from customer GROUP BY country;


Q.7 Write a SQL query to order the (student ID, marks)
table in descending order of the marks

CREATE TABLE student4 (


student_ID int primary key,
NAME varchar(20),
GENDER varchar(1),
SECTION varchar(1),
STREAM varchar(10),
MARKS int
);
INSERT INTO student4 VALUES (1, 'Alex', 'F', 'A', 'CEC', 74);
INSERT INTO student4 VALUES (2, 'Ben', 'M', 'B', 'MPC', 85);
INSERT INTO student4 VALUES (3, 'Chloe', 'M', 'C', 'BiPC', 96);
INSERT INTO student4 VALUES (4, 'Dan', 'M', 'D', 'BiPC', 98);
INSERT INTO student4 VALUES (5, 'Emily', 'F', 'E', 'MEC', 81);
INSERT INTO student4 VALUES (6, 'Fred', 'M', 'A', 'CEC', 91);
INSERT INTO student4 VALUES (7, 'Grace', 'M', 'B', 'HEC', 85);
INSERT INTO student4 VALUES (8, 'Hannah', 'F', 'C', 'MPC', 56);
INSERT INTO student4 VALUES (9, 'Isaac', 'M', 'D', 'MEC', 72);
INSERT INTO student4 VALUES (10, 'Jack', 'M', 'E', 'HEC', 69);
INSERT INTO student4 VALUES (11, 'Kate', 'F', 'A', 'CEC', 34);
SELECT student_ID, MARKS FROM student4 ORDER BY MARKS DESC;

You might also like