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

Assignment-2 & Mini-Project (Lab Based) (Python) - SE 2024-25

Assignment asp assignment asp assin

Uploaded by

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

Assignment-2 & Mini-Project (Lab Based) (Python) - SE 2024-25

Assignment asp assignment asp assin

Uploaded by

use23012
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

School of Economics, XIM University

Course Name: Application of Statistical Package for Economic Analysis


Course Code: EC/UEC/22/S3/ASP
Batch- 2023-2026
Assignment-2 & Mini-project
Assignment Marks: 100 Evaluation Marks: 15

Instructions:
1. You must submit then solved assignment in A4 sheets with a title page clearly
mentioning course name, assignment and assignment no., your name, roll
number.
2. You must give the printout of the python program file (.ipnyb) after executing all
the programs (handwritten answers are not required).
3. You can club multiple solutions as a single program and reuse one NumPy array
or matrix for writing multiple solutions.
4. Original effort will be rewarded. Use of AI tools is strictly prohibited, and will
attract a 0 mark.

List of Assignments

1. Questions on NumPy Array Point-30

1. Create a NumPy array filled with all zeros


2. Create a NumPy array filled with all ones
3. How to Remove rows in NumPy array that contains non-numeric values?
4. Find the most frequent value in a NumPy array
5. How to build an array of all combinations of two NumPy arrays?
6. How to compare two NumPy arrays?
7. How to check whether specified values are present in NumPy array?
8. Flatten a Matrix in Python using NumPy
9. Flatten a 2d NumPy array into 1d array
10. Count the number of elements along a given axis
11. Reverse a NumPy array
12. Get the maximum value from given matrix
13. Get the minimum value from given matrix
14. Find the number of rows and columns of a given matrix using NumPy
15. Find the sum of values in a matrix
16. Calculate the sum of the diagonal elements of a NumPy array
17. Adding and Subtracting Matrices in Python
18. Ways to add row/columns in NumPy array
19. Matrix Multiplication in NumPy
20. Replace NaN values with average of columns
21. Replace negative value with zero in NumPy array
22. Create a NumPy array with random values
23. How to choose elements from the list with different probability using NumPy?
24. Compute the median of the flattened NumPy array
25. Find Mean of a List of NumPy Array
26. Get the mean value from given matrix
27. Compute the standard deviation of the NumPy array
28. Calculate the mean across dimension in a 2D NumPy array
29. Different ways to convert a Python dictionary to a NumPy array
30. How to convert a list and tuple into NumPy arrays?

2. Question on Pandas DataFrame Point-20

1. Creating DataFrame from dict of narray/lists


2. Creating Pandas Dataframe using list of lists
3. Creating a Pandas Dataframe using list of tuples
4. Create a Pandas DataFrame from List of Dicts
5. Construct a DataFrame in Pandas using string data
6. Different ways to iterate over rows in Pandas Dataframe
7. Selecting rows in pandas DataFrame based on conditions
8. Drop rows from the Dataframe based on certain condition applied on a column
9. Insert row at given position in Pandas Dataframe
10. How to get column names in Pandas Dataframe
11. How to rename columns in Pandas DataFrame
12. Collapse multiple Columns in Pandas
13. Return the Index label if some condition is satisfied over a column in Pandas
Dataframe
14. Get the index of maximum value in DataFrame column
15. Get the index of minimum value in DataFrame column
16. Get n-largest values from a particular column in Pandas DataFrame
17. Get n-smallest values from a particular column in Pandas DataFrame
18. Create a Pandas Series from array
19. Creating a Pandas Series from Lists
20. Create Pandas Series using NumPy functions

Use the CSV file wherever is necessary:


https://drive.google.com/file/d/1QWTDOk5DAhBCkvDAOmI6ek4mErF492
XX/view?usp=sharing

3. Matplotlib Point-10

1. Plot a Horizontal line in Matplotlib


2. Increase the thickness of a line with Matplotlib
3. Draw a horizontal bar chart with Matplotlib
4. How to display the value of each bar in a bar chart using Matplotlib?
5. How to create a Scatter Plot with several colors in Matplotlib?
6. How to increase the size of scatter points in Matplotlib?
7. How to Connect Scatterplot Points with Line in Matplotlib?
8. How to Change Legend/Title/Label Font Size in Matplotlib?
9. How to Add Title to Subplots in Matplotlib?
10. How to Set a Single Main Title for All the Subplots in Matplotlib?

3. Mini-Project: Point-40

Download a csv file from the link given-


https://drive.google.com/file/d/1QWTDOk5DAhBCkvDAOmI6ek4mErF492XX/view?usp=sharing

Do preprocessing by cleaning and filtering and reformatting. Convert the height into centimeter and
replace in the place. Do some analytics like find mean, median, mode, standard deviation of all the
numeric columns. Plot age vs weight, height vs weight, and age vs salary using matplotlib.

Note: You can use any economic dataset file and generate similar data analytic for your purpose.

Faculty Name: Dr. Sourav Mandal

Date of Assignment: 25 September 2024


Date of Submission: 22 October 2024

You might also like