def plot_dia_raro(self, data=None, str_dia = '2007-11-24'): # Plot día raro (datos incorrectos, desconexiones, etc.) datos_plot = data if data is not None else self.data rdp.plot_dia_raro(datos_plot, str_dia)
print data['2007-11-24 10:00':'2007-11-24 14:00'] # Plot renovables (sin eólica) rdp.plot_renov(data) # Plot hid, car, gf (buscando problemas en datos) fig, hejes = rdp.get_lienzo() # data.dem.plot(ax=hejes,kind='Area'), plt.show() data.gf.plot(ax=hejes, label='Fuel', alpha=.7) data.hid.plot(ax=hejes, label=u'Hidráulica', alpha=.7) data.car.plot(ax=hejes, label=u'Carbón', alpha=.7) rdp.plt.show() # Días raros (errores en los datos de REE) for d in DIAS_RAROS: rdp.plot_dia_raro(data, d) # print df0.ix['2007-10-26 21:00'] # fig, hejes = rdp.get_lienzo() # data.inter.plot(ax=hejes) # # #data.to_html(buf=None, columns=None, col_space=None, colSpace=None, header=True, index=True, na_rep='NaN', formatters=None, float_format=None, sparsify=None, index_names=True, justify=None, bold_rows=True, classes=None, escape=True, max_rows=None, max_cols=None, show_dimensions=False, notebook=False) # data.to_html('data_ree.html') # Plot resample intercambios_dia = rdp.plot_resample(data.inter, freq='1M', how=[np.min, np.max, np.mean], kind='line') # ,tupla_mag=None)
# Plot renovables (sin eólica) rdp.plot_renov(data) # Plot hid, car, gf (buscando problemas en datos) fig, hejes = rdp.get_lienzo() # data.dem.plot(ax=hejes,kind='Area'), plt.show() data.gf.plot(ax=hejes, label='Fuel', alpha=.7) data.hid.plot(ax=hejes, label=u'Hidráulica', alpha=.7) data.car.plot(ax=hejes, label=u'Carbón', alpha=.7) rdp.plt.show() # Días raros (errores en los datos de REE) for d in DIAS_RAROS: rdp.plot_dia_raro(data, d) # print df0.ix['2007-10-26 21:00'] # fig, hejes = rdp.get_lienzo() # data.inter.plot(ax=hejes) # # #data.to_html(buf=None, columns=None, col_space=None, colSpace=None, header=True, index=True, na_rep='NaN', formatters=None, float_format=None, sparsify=None, index_names=True, justify=None, bold_rows=True, classes=None, escape=True, max_rows=None, max_cols=None, show_dimensions=False, notebook=False) # data.to_html('data_ree.html') # Plot resample intercambios_dia = rdp.plot_resample(data.inter, freq='1M', how=[np.min, np.max, np.mean], kind='line') # ,tupla_mag=None)