Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Steam Data Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Max Väistö
Steam Data Project
Commits
90edb71c
Commit
90edb71c
authored
1 year ago
by
Max Väistö
Browse files
Options
Downloads
Patches
Plain Diff
Moved file initialization
parent
5a4f3189
Branches
server_test
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dash_plot_generation/app.py
+2
-2
2 additions, 2 deletions
dash_plot_generation/app.py
dash_plot_generation/data_store.py
+0
-3
0 additions, 3 deletions
dash_plot_generation/data_store.py
with
2 additions
and
5 deletions
dash_plot_generation/app.py
+
2
−
2
View file @
90edb71c
...
...
@@ -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
()
This diff is collapsed.
Click to expand it.
dash_plot_generation/data_store.py
+
0
−
3
View file @
90edb71c
...
...
@@ -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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment