Using a new Jupyter notebook, create a 100 x 100 times table matrix using the following three methods. Use the timeit function to measure the execution time of each method.
Nested for loops
Numpy fromfunction
Numpy broadcasting
Copy a slice of your matrix using the first 12 numbers to create a new 12 x 12 times table matrix. Perform the following tasks with this new matrix:
Save the array to a file.
Use one of the unary ufuncs (Table 4-3, McKinney, 2017, p.109).
Use two of the basic array statistical methods (Table 4-5, McKinney, 2017, p.114).
Load the array file saved in step 4.
Capture as many screenshots as necessary to demonstrate successful completion of all the above tasks. One screenshot can be used to demonstrate more than one task. Ensure the code is large enough in the screenshots to be readable in your Word document submission.
Sample Solution