Plotting Error Bars Matplotlib, Using Pandas Data Frame July 31, 2024 Post a Comment I'm sure this is relatively easy, but I can't seem to make it work. I would like to plot this df, with date as the x-axis, gas as the y-axis and std as errorbars using the matplotlSolution 1: std is a method on a dataframe, ex df.std().Useplt.errorbar(trip.index, trip['gas'], yerr=trip['std']) Copyor if you have mpl1.5.0+plt.errorbar(trip.index, 'gas', yerr='std', data=trip) Copy Share Post a Comment for "Plotting Error Bars Matplotlib, Using Pandas Data Frame"
Post a Comment for "Plotting Error Bars Matplotlib, Using Pandas Data Frame"