How to plot medians of grouped data in pandas
How to plot medians of grouped data in pandas Question: Considering two histograms as the following ones: from pandas import DataFrame import numpy as np x = [‘A’]*300 + [‘B’]*400 y = np.random.randn(700) df = DataFrame({‘Letter’: x, ‘N’: y}) df.hist(‘N’, by=’Letter’) I am trying to plot the median of each grouped data. I would also …