Computer Science, asked by rg2898537, 1 month ago

Create a data frame with numeric data and display maximum, minimum, sum and mean of the data.​

Answers

Answered by karthikyerubandi6
1

Answer:

import numpy as np

import pandas as pd

# List of Tuples

matrix = [(10, 56, 17),

(np.NaN, 23, 11),

(49, 36, 55),

(75, np.NaN, 34),

(89, 21, 44)

# Create a DataFrame

abc = pd.DataFrame(matrix, index = list('abcde'), columns = list('xyz'))

# output

abc

Output:

Similar questions