Wednesday, 26 October 2022
Thursday, 20 October 2022
Sunday, 21 August 2022
Sunday, 3 July 2022
Create a data frame for examination result and display row labels, column labels data types of each column and the dimensions.
import pandas as pd
result_data= {
'Eng':[90,85,72,69,86],
'Phy':[85,82,73,56,96],
'Chem':[88,65,70,36,35],
'Maths':[90,56,45,36,42],
'Comp Sci':[85,85,65,23,66],
'Marks':[406,450,390,480,450],
'Percentage':[96.5,85.2,48,79,68]
}
result_df=pd.DataFrame(result_data,
index=["Amit","Soham","Mohan","Neha","Sachin"])
print(result_df)
print(result_df.index)
print(result_df.column)
print(result_df.dtypes)
print(result_df.ndim)
print(result_df.size)
print(result_df.shape)
print(result_df.T)
Wednesday, 20 April 2022
Monday, 4 April 2022
12th IP Practical list 2024-25
Data Handling
1. Create a panda’s series from a dictionary of values and a ndarray: Click here (Reference video: Click Here)
2. Given a Series, print all the elements that are above the 75th percentile. Click here (Reference video Click Here)
3. 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.Click here (Reference video: Click Here )
4. Create a data frame for examination result and display row labels, column labels data types of each column and the dimensions. Click Here
5. Filter out rows based on different criteria such as duplicate rows. click Here (Reference video: Click Here)
6. Importing and exporting data between pandas and CSV file.Click Here
1. Given the school result data, analyses the performance of the students on different parameters, e.g subject wise or class wise. Click Here
2. For the Data frames created above, analyze, and plot appropriate charts with title and legend.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
\c;
create database urname;
use urname;
1. Create a student table with the student id, name, and marks as attributes where the student id is the primary key.
Sunday, 3 April 2022
12th CS Python Program list 2024-25
As per CBSE Practical List 2024-25
Python Programming
● Read a text file line by line and display each word separated by a #.
● Read a text file and display the number of vowels/consonants/uppercase/lowercase characters in the file.
Database Management
● Create a student table and insert data. Implement the following SQL commands on the student table:
o ALTER table to add new attributes / modify data type / drop attribute
o UPDATE table to modify data
o ORDER By to display data in ascending / descending order
o DELETE to remove tuple(s)
o GROUP BY and find the min, max, sum, count and average
● Similar exercise may be framed for other cases.
● Integrate SQL with Python by importing suitable module.
1. file line by line and display each word separated by a #. click here
2. Read a text file and display the number of vowels/consonants/uppercase/lowercase characters in the file. Click here
3. Remove all the lines that contain the character 'a' in a file and write it to another file. Click here
4. Create a binary file with name and roll number. Search for a given roll number and display the name, if not found display appropriate message. Click here
5. Create a binary file with roll number, name and marks. Input a roll number and update the marks. Click here
6. Write a random number generator that generates random numbers between 1 and 6 (simulates a dice). Click here
7. Write a Python program with function to count the number of lines in a text file ‘ 'STORY.TXT’ which is starting with an alphabet ‘A’ or 'a'. Click here
8. Write a Python program with method/function DISPLAYWORDS() to read lines from a text file STORY.TXT, and display those words, which are less than 4 characters. Click Here
9. Text Files Menu Driven Program: Click Here
Choice = 1. Read a text file line by line and display each word
- separated by a '#'.
- Choice = 2.Python program with function to count the number of lines
- in a text file ‘ 'STORY.TXT’ which is starting with an alphabet ‘A’ or 'a'.
- Choice= 3. Python program with method/function DISPLAYWORDS()
- to read lines from a text file STORY.TXT, and display those words,
- which are less than 4 characters.
10. Text Files Menu Driven Program: Click Here Choice= 1. Remove all the lines that contain the character `a’ in a file and write it to another file.
03. Stack based program 3 Write a Python Program to implement a Stack for the book details (bookno,bookname). That is, each item node of the stack contains two types of information- a book number and its name. Implement all the operations of Stack.Click Here
MySQL/SQL programmes
05. SQL Queries:-2 – TWO TABLES. Click Here
06. SQL Queries:-3- Create the following student table and answer the following queries. Click Here
Connectivity Programmes (Mysql with Python)
07. Find the total number of customers from each country in the table (customer ID, customer name, country) using group by( python interface through MYSQL). Click Here
08. INSERT, UPDATE, AND DELETE (PYTHON INTERFACE THROUGH MYSQL)ppt slides(RKS):Click Here and Reference: INSERT, UPDATE, AND DELETE (PYTHON INTERFACE THROUGH MYSQL)video: Click Here
09.fetchall(), fetchone(), fetchmany() and rowcount( python interface through MYSQL) ppt slides (RKS): Click Here
Reference: fetchall(), fetchone(), fetchmany() and rowcount( python interface through MYSQL video: Click Here
10. Find the min, max, sum, and average of the marks in a student marks table( python interface through MYSQL). Click here