The document outlines a Python test consisting of various programming tasks, including creating dictionaries, lists, data frames, and visualizations using libraries like Matplotlib and Seaborn. Each task has specific requirements and marks assigned, totaling 100 marks with a passing score of 50. The tasks cover data manipulation, pivot tables, and different types of visualizations based on provided datasets.
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 ratings0% found this document useful (0 votes)
6 views3 pages
Python Complet Test
The document outlines a Python test consisting of various programming tasks, including creating dictionaries, lists, data frames, and visualizations using libraries like Matplotlib and Seaborn. Each task has specific requirements and marks assigned, totaling 100 marks with a passing score of 50. The tasks cover data manipulation, pivot tables, and different types of visualizations based on provided datasets.
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/ 3
PYTHON TEST TOTAL MARK 100 PASS MARKS 50
1. Create a Dictionary name using Empid and Department such as
mention below 10 1 – Finance, 2 – HRM, 3 – Marketing, 4 – IT, 5 – R&D, 6 – Operation. a) Add a new id and department 7 – Product b) Display all of the keys of Dictionary. c) Display the value of Empid – 3 using get keyword d) Update the Department of Empid 4 from IT to System e) Display all of the key-values of the Dictionary. f) Explain with example the concept of fromkeys function in dictionary on the concept of Olympic Ring Color = red, blue, green, yellow, black Country = India, USA, Germany, Pakistan, China, Brazil, UK, Russia, Japan, Austria, France, UAE, South Korea 2. Create a Empty List and Ask from user to Input the size of the Element. Then after user input the digits in form of Element and arrange all of the digits in ascending order without using the inbuilt function. 10 3. Create a Two Data Frame in mention below and then apply the Left outer Join and Right Outer Join operator on These Data Frame. 10 Product Customer Prdname Brand Price Custname City Quantity Laptop HP 43000 Amit Delhi 1 Smart OPPO 21000 Pooja Jaipur 2 Phone Head Boat 2400 Sanjay Pune 3 Phone Mouse HCL 300 Jaya Mumbai 7 PD ScanDisk 600 Kunal Kolkata 3
4. Import a file and solve the following questions using Pivot
Tables— 10 PYTHON TEST TOTAL MARK 100 PASS MARKS 50
a) Display sum of Salary of the Employee data in which
Department in row wise, Gender in column form. b) Display average of Project_Hour of the Employee data in which Gender in row wise, Project_Type in column form. c) Display Max of Total_Salary of the Employee data in which Project_type in row wise and Designation in column form. 5. Create a Data Frame name Technology according to given below table. Remove columns in which all values are null. 5 Courses Fee Duration Discount 0 Spark 20000.0 30days NaN 1 Java NaN NaN NaN 2 Hadoop 26000.0 35days NaN 3 Python 24000.0 40days NaN 4 PHP 25000.0 NaN NaN
6. Create a two Sets as following: 5
set1—Cow, Dog, Cat, Rabbit, Fox, Goat, Monkey, Buffalow, set2—Lion, Tiger, Cat, Leopard, Bear, Dog, Fox, Monkey, Elephant Now copy set1 into set3 and copy set 2 into set4 Then apply update_intersect in set1 and set2, update_difference from set4 to set3. 7. Create a Visualization to Pie Chart on the following ways. using Matplot library. 10 Colour – Red, Blue, Green, Yellow, Brown, Orange, Manenta. Month – jan, feb, mar, apr, may, June, july Sales – 2000, 3200, 1600, 3200, 1000, 3500, 2400 Display with labels, colour, with angle 90 degree, sales display in percent form. 8. Create a Visualization to Display relplot using seaborn after import file of Dashboard. Display Visualization according to Total_cost & Salary in different Gender wise. Display Project_type also in the graph. 5 PYTHON TEST TOTAL MARK 100 PASS MARKS 50
9. Create a Visualization to Display the count plot of Entire data
according to Gender Wise. 5 10. Create a Joint plot using Seaborn library to display Coherence and Firing rate after import data dots. 10 11. Create a pair plot after import Dashboard file from DataFrame. Do yourself Analysis on pair plot using a) Salary and b) Project_cost. 10 12. Create a Scatter Plot after import the data tips from seaborn library and Analysis the Column on the basis of total_bill and tip according to gender wise and apply visualization. 10