Packagify pulkka

This commit is contained in:
Aarni Koskela
2022-08-31 15:05:37 +03:00
parent df22bd90f1
commit cdc6d9cc89
9 changed files with 10 additions and 10 deletions

View File

@@ -7,16 +7,16 @@ copy-raw-data: all-data
cp data/results.tsv out/raw.tsv cp data/results.tsv out/raw.tsv
copy-massaged-data: all-data copy-massaged-data: all-data
python copy_massaged_data.py python -m pulkka.copy_massaged_data
static: all-data static: all-data
python massage_templates.py python -m pulkka.massage_templates
charts: all-data charts: all-data
python generate_charts.py python -m pulkka.generate_charts
profiling: all-data profiling: all-data
python generate_profiling.py python -m pulkka.generate_profiling
all-data: data/results.xlsx data/results.tsv all-data: data/results.xlsx data/results.tsv

0
pulkka/__init__.py Normal file
View File

View File

@@ -2,7 +2,7 @@ from bokeh import models as bm, plotting as bp
from bokeh.transform import factor_cmap from bokeh.transform import factor_cmap
from pandas import DataFrame from pandas import DataFrame
from data_utils import get_categorical_stats from pulkka.data_utils import get_categorical_stats
CAT_Q_RADIUS = 0.1 CAT_Q_RADIUS = 0.1

View File

@@ -1,4 +1,4 @@
from data_ingest import read_data from pulkka.data_ingest import read_data
def main(): def main():

View File

@@ -3,13 +3,13 @@ import bokeh.models as bm
import bokeh.layouts as bl import bokeh.layouts as bl
from pandas import DataFrame from pandas import DataFrame
from chart_utils import ( from pulkka.chart_utils import (
gender_colormap, gender_colormap,
get_df_hover_tool, get_df_hover_tool,
set_yaxis_cash, set_yaxis_cash,
get_categorical_stats_plot, get_categorical_stats_plot,
) )
from data_ingest import read_data from pulkka.data_ingest import read_data
plot_funcs = set() plot_funcs = set()

View File

@@ -1,4 +1,4 @@
from data_ingest import read_data, force_tulot_numeric, force_age_numeric from pulkka.data_ingest import read_data, force_tulot_numeric, force_age_numeric
from pandas_profiling import ProfileReport from pandas_profiling import ProfileReport

View File

@@ -6,7 +6,7 @@ import jinja2
import numpy import numpy
import pandas import pandas
from data_ingest import read_data from pulkka.data_ingest import read_data
def main(): def main():