Update requirements and code optimisation
This commit is contained in:
parent
77864d246d
commit
624e35db9d
12
analyse.py
12
analyse.py
|
@ -42,6 +42,7 @@ def save_skill_statistics(filename, skills_dict, number_of_skill, number_of_rout
|
|||
ws_skill['E3'] = number_of_picked / number_of_routine
|
||||
ws_skill['F3'] = number_of_straight / number_of_routine
|
||||
|
||||
# Headers
|
||||
ws_skill['H1'] = "Skill"
|
||||
ws_skill['H1'].font = Font(bold=True)
|
||||
ws_skill['I1'] = "# Apparition"
|
||||
|
@ -129,7 +130,16 @@ def skill_frequency(filename) -> dict:
|
|||
if skill_in_routine != 10:
|
||||
number_of_unfinished_routine += 1
|
||||
|
||||
save_skill_statistics(filename, skills_dict, number_of_skill, number_of_routine, number_of_unfinished_routine, number_of_tucked, number_of_picked, number_of_straight)
|
||||
save_skill_statistics(
|
||||
filename,
|
||||
skills_dict,
|
||||
number_of_skill,
|
||||
number_of_routine,
|
||||
number_of_unfinished_routine,
|
||||
number_of_tucked,
|
||||
number_of_picked,
|
||||
number_of_straight
|
||||
)
|
||||
|
||||
return skills_dict, number_of_routine
|
||||
|
||||
|
|
|
@ -1,10 +1,2 @@
|
|||
certifi==2021.10.8
|
||||
charset-normalizer==2.0.12
|
||||
idna==3.3
|
||||
numpy==1.22.2
|
||||
pandas==1.4.1
|
||||
python-dateutil==2.8.2
|
||||
pytz==2021.3
|
||||
requests==2.27.1
|
||||
six==1.16.0
|
||||
urllib3==1.26.8
|
||||
et-xmlfile==1.1.0
|
||||
openpyxl==3.0.9
|
||||
|
|
Loading…
Reference in New Issue