Pandas Image Marker DataFrame
Is there a way to set the style of the marker in pandas.DataFrame.plot? All other options are available by setting the view. I would like a marker with an error bar, but just get a line with an error bar. If I did it through the function error panel, I would set fmt = '.'
+3
Keith
source
to share
1 answer
df.plot
passes additional keyword parameters along with the basic matplotlib plotting function. Thus,
df = pd.DataFrame({'x':np.arange(10), 'y':np.random.randn(10),
'err':np.random.randn(10)})
df.plot('x', 'y', yerr='err', fmt='.')
gives
+3
unutbu
source
to share