Run
import pandas as pd mydictionary = {'physics': [68, 74, 77, 78], 'chemistry': [84, 56, 73, 69], 'algebra': [78, 88, 82, 87]} # Create dataframe df_marks = pd.DataFrame(mydictionary) print('DataFrame\n----------') print(df_marks) # Calculate max of whole DataFrame mean = df_marks.max().max() print('\nMaximum Value\n------') print(mean)
Output