I have a pandas DataFrame with 16 columns corresponding years (2000 to 2015) and 12 lines with values for each month.
I\'m trying plot a boxplot and a line with 2015
Thank you so much, pbreach.
It works to me.
I made:
import pandas as pd import matplotlib.pyplot as plt df = pd.read_excel('hidro_ne.xlsx') fig, ax = plt.subplots() ax.plot(list(range(1,13)), df[2015].values, 'r', linewidth=2) ax.legend(['2015']) df.T.plot.box(yticks=range(0, 105, 5), ax=ax)