I am new to pandas build functions, in the document, this command is really convenient:
myplot = rts.ret.hist(bins=50, by=rts.primary_mic)
however, problems arise when I try to get a link to a shape from a chart and save it:
myfigure = myplot.get_figure()
AttributeError: 'numpy.ndarray' object has no attribute 'get_figure'
I understand that rts.ret.hist (bins = 50) returns a plot object, and rts.ret.hist (bins = 50) returns an array object.
How do I save a figure in this case?
any clue?
thank!
source
share