diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..32e9f56e0da3942878a4f860fbce195e3ec1e593 Binary files /dev/null and b/requirements.txt differ diff --git a/src/main.py b/src/main.py index 318d6e39b345e32a18a1579339d0dc9f6a6ca597..d5229be18f387128eb0e780fc688e6a5facffea1 100644 --- a/src/main.py +++ b/src/main.py @@ -10,6 +10,7 @@ from enum import Enum from sklearn.manifold import MDS import scipy from kPOD import k_pod +import time class Categories(Enum): @@ -471,6 +472,9 @@ class Statistics: return + def mean_time(self): + return self.df["TIME_SUM"].mean() + def setup_dataframes(): return Interviews(), Variables(), Values(), ProductCategories(), Rankings() @@ -482,13 +486,14 @@ if __name__ == '__main__': df_filtered = interview.get_filtered(product_categories) plotter = Plotter(df_filtered, product_categories) statistics = Statistics(df_filtered, product_categories) - plotter.plot_groups(variables.get_groups()) - plotter.plot_sex() - plotter.plot_faculty() - for example in Categories: - plotter.plot_item(example, 'top') - plotter.plot_item(example, 'mid') - plotter.plot_item(example, 'low') + # plotter.plot_groups(variables.get_groups()) + # plotter.plot_sex() + # plotter.plot_faculty() + # plotter.plot_item(example, 'top') + # plotter.plot_item(example, 'mid') + # plotter.plot_item(example, 'low') + # plotter.plot_boxes(example, 5) plotter.plot_boxes(example, 6) print(statistics.calc_corr()) print(statistics.similarity_by_ranked_scales(rankings.get_all_rankings())) + print(time.strftime('%M:%S', time.gmtime(statistics.mean_time())))