Skip to main content

Program to get the maximum value from given matrix

· One min read
Kaustubh Kulkarni

Code >

file.py
import numpy as np
import pandas as pd
matrix = [(100, 63, 47),
(11, 103, 117),
(49, 36, 55),
(75,24, 34),
(89, 21, 44)
]
panda_max = pd.DataFrame(matrix, index = list('symca'), columns = list('psk'))
maxValues = panda_max.max()
print(maxValues)

Output >

Output
100
103
117