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

Practical File Questions

The document outlines practical file questions with a submission deadline of April 28, 2025, and includes a retest on the same date. It contains tasks related to data manipulation and analysis using Pandas and NumPy, including grouping, aggregating, filtering, and visualizing data. Additionally, it involves working with the Iris dataset and creating various plots and time series data.

Uploaded by

brpsriya2908
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)
2 views

Practical File Questions

The document outlines practical file questions with a submission deadline of April 28, 2025, and includes a retest on the same date. It contains tasks related to data manipulation and analysis using Pandas and NumPy, including grouping, aggregating, filtering, and visualizing data. Additionally, it involves working with the Iris dataset and creating various plots and time series data.

Uploaded by

brpsriya2908
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/ 2

Practical File Questions

Last date of submission: 28th April,2025 (Not to be extended further)

A retest will be also held on 28th April, 2025

Reference data below first to be made into csv file and then question needed to be done.

Department Gender Experience Salary


H.R. M 1 300006
Finance F 20000
H.R. M 5
Marketing F 6 350000
H.R. M 4 30000
Finance M 2 200000
H.R. F 8
Marketing F 9 350000

Q-1) (A) Group the data by department and find average salary in each department.

(B) Group the data by gender and find the total salary for each gender.

(C) Group by both department and gender and find the maximum salary in each group.

Q-2) Use .agg() method to calculate following for each department:-

(A) Mean salary


(B) Maximum salary
(C) Minimum Experience

Q-3) Filter and display only those departments where average salary is greater than 60000.

Q-4) Use the .tranform() to create a new column that shows each employee’s salary as a
percentage of their department’s average salary.

Q-5) Use .apply() function to find standard deviation of experience within each department.

Q-6)Dataset: Iris (from sklearn or UCI)

Task:

(A) Load the dataset into a Pandas DataFrame.


(B) Compute mean, median, mode, standard deviation, and variance.

Q-7) Create a 2D NumPy array of shape 4x5 with random integers.


(A) Perform slicing, reshaping, and transposing.
(B)Apply functions: np.mean, np.std, np.var, np.sum along both axes.
(C) Identify and count missing values.
(D) Drop duplicate rows and fill missing values appropriately.
(E) Apply melt() and pivot() to reshape data.
Q-8)Create
(A) line plots, bar charts, histograms, and scatter plots.
(B)Customize plots with titles, labels, legends, and styles.
Q-9) Write code for below:
(A)Create a time series DataFrame of daily random data (e.g., temperature).
(B)Resample data to monthly average and plot it.

You might also like