Skip to content
Snippets Groups Projects
Commit 90edb71c authored by Max Väistö's avatar Max Väistö
Browse files

Moved file initialization

parent 5a4f3189
Branches server_test
No related tags found
No related merge requests found
......@@ -4,8 +4,9 @@ import pandas
from dash import html, dash, Output, Input, dcc
from dash.exceptions import PreventUpdate
from Project_data_processor_ML import get_genre_plot
import dash_plot_generation.data_store as ds
ds.initialize_data()
from Project_data_processor_ML import get_genre_plot
from dash_plot_generation.styles_and_handles import RATING_MIN_REVIEWS, RATING_SLIDER, RATING_TABLE, \
DEV_AVERAGE_RATING_LABEL, DENSITY_LAYOUT_STYLE, WHITE_STEAM, TAB_COLOR, TAB_EDGE, \
TAB_HEADER_COLOR, DEVELOPER_DROPDOWN, DEV_TOP_GENRES_LABEL, DEV_CCU_LABEL, DEV_GAME_COUNT_LABEL, \
......@@ -237,5 +238,4 @@ def start_server():
if __name__ == "__main__":
print("Here!")
ds.initialize_data()
start_server()
......@@ -56,6 +56,3 @@ def add_game_revenues_and_owner_means(data):
data["game_revenue"] = data.apply(lambda x: x["owner_means"] * x["price"] if
not (pandas.isna(x["owner_means"]) or pandas.isna(x["price"]))
else 0, axis=1)
FULL_DATA, OWNER_RANGE_PARTS_SORTED, LABEL_ENCODED_DATASET = initialize_data()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment