Write a function called is_identity that takes a list of lis…

Write a function called is_identity that takes a list of lists representing a matrix of integers as its only argument and returns True if it is an identity matrix, False otherwise. Identity matrices have all ones on the diagonal, zeroes everywhere else. Examples:

Write a function called transpose that takes a DataFrame and…

Write a function called transpose that takes a DataFrame and returns its transpose. The row and column labels must also transpose. You cannot use any built-in transposing functionality. You must create a new frame and fill it using nested loops. An example of a matrix and its transpose: