Пример #1
0
def update_desc(the_location, the_benchmark, clicks):
    if clicks % 2 == 0:
        if not all((the_benchmark, the_location)):
            the_benchmark = bench_start
            the_location = location_start
            desc = describe(ticker_start, bench_start, the_location,
                            the_benchmark, False)
        else:
            desc = describe(ticker_start, bench_start, the_location,
                            the_benchmark, False)
    else:
        desc = describe(ticker_start, bench_start, the_location, the_benchmark,
                        True)
    return desc
Пример #2
0
def dadr(diffy):
    diffy = json.loads(diffy)
    dict_items = global_store(diffy["the_location"], diffy["the_benchmark"],
                              diffy["clicks"])
    desc = describe(dict_items["Company"], dict_items["Benchmark"])
    return desc
Пример #3
0
    'value': i
} for r, i in zip(all_benchmark_small_names, all_benchmark_codes)]

s_metrics_df_output = ext_info_dict[
    diffy["first_option_target_code"]]["Stakeholder Metrics"]
s_metrics_df_1_output = ext_info_dict[
    diffy["first_option_target_code"]]["Stakeholder Metrics"]
c_metrics_df_output = ext_info_dict[
    diffy["first_option_target_code"]]["Company Metrics"]
dict_info_output = ext_info_dict[
    diffy["first_option_target_code"]]["Stakeholder Description"]

c_metrics_df_output_1 = ext_info_dict[
    diffy["first_option_target_code"]]["Company Metrics"]

stock_plot_desc_output, _ = describe(diffy["first_option_target_code"],
                                     diffy["first_option_bench_code"])

title_output = str(diffy["first_option_target_long_name"]) + " 4-D Report"
location_output = str(diffy["target_location_address"]) + " Location"
profile_output = str(
    diffy["first_option_target_location_small_name"]) + " Profile"

df_perf_summary_output = fm.fin_met(diffy["first_option_bench_code"],
                                    diffy["first_option_target_code"])

first_dict = {}
#first_dict[""]

first_dict[
    "target_location_small_drop_down_options"] = target_location_small_drop_down_options
first_dict["bench_code_drop_down_options"] = bench_code_drop_down_options
Пример #4
0
def dadr(diffy):
    diffy = json.loads(diffy)
    desc = describe(diffy["code_start"], diffy["the_benchmark"])
    return desc
c_metrics_df_output = dict_all_coll[diffy["code_start"]]["Company Metrics"]

c_metrics_df_output_1 = dict_all_coll[diffy["code_start"]]["Company Metrics"]

df_fund_info_output = pd.read_csv('https://plot.ly/~jackp/17544/.csv')

df_fund_characteristics_output = pd.read_csv(
    'https://plot.ly/~jackp/17542/.csv')

df_fund_facts_output = pd.read_csv('https://plot.ly/~jackp/17540/.csv')

##df_bond_allocation = pd.read_csv('https://plot.ly/~jackp/17538/')

##df_bond_allocation_output = make_dash_table(df_bond_allocation)

desc = describe(diffy["code_start"], diffy["the_benchmark"])
stock_plot_desc_output = desc

title = str(diffy["code_start_small"]) + " 4-D Report"
title_output = title

title = str(diffy["long_addy"]) + " Location"

location_output = title

title = str(diffy["the_location"]) + " Profile"

profile_output = title

df_perf_summary_output = fm.fin_met(diffy["the_benchmark"],
                                    diffy["code_start"])