python-clean-coding-assignment
python-clean-coding-assignment
Question:
Write a Python program that performs the following tasks:
Question:
Create a Python script using Numpy to do the following:
1. Create a 3x3 matrix filled with random integers between 1 and 50.
2. Find and print the maximum value of the matrix along each row and
column.
3. Flatten the matrix into a one-dimensional array and print the result.
4. Reshape the flattened array back into a 3x3 matrix and print it.
5. Calculate the sum of all elements in the matrix and print the result.
Question:
1. Create a Pandas DataFrame with the following data:
Ag Salar Departme
Name
e y nt
5000
John 25 HR
0
6000
Alice 30 IT
0
5500
Bob 35 Finance
0
Catherin 6500
28 IT
e 0
7000
David 40 HR
0
o Filter and display only the rows where the department is "IT".
-----------------------------------------------------------------------------------------------
--