Exemplo n.º 1
0
 def plot_resample(self, data=None, freq='1M', how=np.mean, kind='line', tupla_mag=None):
     # Plot de resample datos'
     # how=[np.min, np.max, np.mean]
     datos_plot = data if data is not None else self.data
     rdp.plot_resample(datos_plot,freq,how,kind,tupla_mag)
Exemplo n.º 2
0
# 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)

cols = list(df0.columns)
cols.remove('dem')
print cols

# noinspection PyRedeclaration
fig, hejes = rdp.get_lienzo()
df0.plot(y='dem', ax=hejes)
# prod_menos_dem = df0.dem
# df1.plot(y=cols,ax=hejes)
# df2.plot(y=cols,ax=hejes)

# data = pd.DataFrame([df0,df1,df2])
Exemplo n.º 3
0
# 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)

cols = list(df0.columns)
cols.remove('dem')
print cols

# noinspection PyRedeclaration
fig, hejes = rdp.get_lienzo()
df0.plot(y='dem', ax=hejes)
# prod_menos_dem = df0.dem
# df1.plot(y=cols,ax=hejes)
# df2.plot(y=cols,ax=hejes)

# data = pd.DataFrame([df0,df1,df2])