Do students good at Maths also do well in Computers? Work out the correlation between subjects with np.corrcoef (subjects are columns, so transpose) and draw it as an annotated heatmap with the subjects names on both axes, 2 decimals.
import numpy as np
names = np.array(["Asha", "Ravi", "Kiran", "Meena", "Om", "Farah", "Dev", "Isha", "Neel", "Tara"])
subjects = np.array(["Maths", "Science", "English", "Computers"])
marks = np.array([
[78, 85, 72, 90],
[56, 61, 70, 65],
[92, 88, 81, 95],
[45, 52, 60, 58],
[83, 79, 88, 84],
[67, 72, 64, 70],
[99, 94, 85, 98],
[38, 44, 55, 41],
[71, 69, 77, 80],
[88, 91, 93, 87],
])
import seaborn as sns
import matplotlib.pyplot as pltDraw the chart. It is checked on what it shows: the data, the title and axis labels, the legend and the category names. Size and fonts don't matter.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.