Question: 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

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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!