예제 #1
0
def make_graphs(stock_data):
    da = DataAnalyzer(stock_data.data)
    data = da.normalize_dataframe()

    # making the figures
    # norms
    da.plot_data(data,
                 'months', 
                 'stock data',
                 'Test',
                 '../data/figures/all.png')
    # mean of the norms             
    da.plot_data(data.mean(axis=1),
                 'months', 
                 'stock data mean', 
                 'Price Means', 
                 '../data/figures/mean.png') 
예제 #2
0
def make_la_figs(stock_data):
    da = DataAnalyzer(stock_data)
    data = da.normalize_dataframe()

    # making the figures
    # normalized data
    da.plot_data(data,
                 'months', 
                 'stock data', 
                 'Stock Data',
                 '../data/figures/no_all.png')
    # mean of normalized data
    da.plot_data(data.mean(axis=1),
                 'months', 
                 'stock data', 
                 'Stock Data',
                 '../data/figures/no_mean.png')
예제 #3
0
 def make_graph(self, data):
     analyzer = DataAnalyzer(data)
     data_norm = analyzer.normalize_dataframe()
     analyzer.plot_data(data_norm, 'month', 'stuff', 'title stuff',
                        '../data/figures/local_eco.png')
예제 #4
0
def plot_data():
    da = DataAnalyzer()
    # da.show()
    da.plot_data()
    da.plot_ratio()
    da.plot_order()