def sentiment_dashboard():
    data = etl.prepare_data_for_modeling()

    data['date'] = data.index

    dat_dict = data.to_dict(orient='records')

    return render_template('highcharts1.html', dictionary=json.dumps(dat_dict))
def test():
    d = etl.prepare_data_for_modeling()
    res = model.linear_reg(d)

    return render_template('default.html', data=json.dumps(res))