Si consideri il seguente codice in esecuzione in ipython/Jupyter Notebook:iPython/Jupyter Notebook and Pandas, come tracciare più grafici in un ciclo for?
from pandas import *
%matplotlib inline
ys = [[0,1,2,3,4],[4,3,2,1,0]]
x_ax = [0,1,2,3,4]
for y_ax in ys:
ts = Series(y_ax,index=x_ax)
ts.plot(kind='bar', figsize=(15,5))
mi sarei aspettato di avere 2 lotti separati come output, invece ho ricevuto le due serie fuse in un'unica trama. Perché è quello? Come posso ottenere due grafici separati mantenendo il ciclo for
?
Grande! Facile peacy. Grazie @ Andrea Sobolev –