question archive Make a function 'eliminarrows' that receives a 2D array (matrix) and integer n

Make a function 'eliminarrows' that receives a 2D array (matrix) and integer n

Subject:Computer SciencePrice: Bought3

Make a function 'eliminarrows' that receives a 2D array (matrix) and integer n. It should return the original array, but remove the last n rows. If n is greater than or equal to the number of rows it should return np.nan (not a number).

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE