Description
- In NumPy, do the following without hardcoding the values into the arrays or using for loops:
- Create and print a 4×2 matrix with values ranging from 2 to 10
- Create and print a 8×8 matrix and fill it with a checkerboard pattern [[0 1 0 1 0 1 0 1]
……….
- 1 0 1 0 1 0 1]
- 0 1 0 1 0 1 0]]
- Get the unique values of a list
- List = [10, 20, 10, 30, 20, 40, 20, 20, 10, 30, 0, 50, 10]
- Get the values greater than 37 in the list
- List = [6, 75, 9, 82, 36, 42, 59, 3, 52, 1, 32, 68, 93, 4, 27, 85, 0, -3, 57]
- Convert the values of a list of values in Centigrade into Fahrenheit degrees
- List = [0, 12, 45.21 ,34, 99.91]
- Given the following two matrices, output the results of the operations with NumPy:
1 2 3 3 1 4
𝐴 = [4 5 6] 𝐵 = [2 6 1]
7 8 9 2 9 7
- A + B
- A X B
- Determinate of A
- Inverse of B
- Eigenvalues of A
- In Pandas, parse the file “weather_data.txt” and output the answers to the following:
- What day(s) had the highest actual precipitation?
- What was the average actual max temp for July 2014?
- What days was the actual max temp the record max temp?
- How much did it rain in October 2014?
- What day(s), if any, was the actual low temperature below 60 degrees and actual max temperature above 90 degrees on the same day?
- In Pandas, parse the file “weather_data.txt” and create the following plots (with titles, labels and a legend):
- Actual max temperature and actual min temperature on the same line chart (max should be a red line, min should be blue)
- A histogram of actual precipitation



