Debug/Modify a python code
Budget: $10 – $20 USD
1.) Please debug the attached code. The current error is as follows:
ZeroDivisionError: division by zero
Traceback:
File "C:\Users\COMD\AppData\Roaming\Python\Python311\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 534, in _run_script
exec(code, module.__dict__)
File "C:\Users\COMD\Downloads\makefrance.py", line 167, in <module>
probs_over_1 = ((over_1_goal / len(head_to_head['TotalGoals'])) * 100)
2.) Based on 1 above, modify the code to analyse a bigger data (attached)
Timeline: 2hrs
Budget: 20$
ZeroDivisionError: division by zero
Traceback:
File "C:\Users\COMD\AppData\Roaming\Python\Python311\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 534, in _run_script
exec(code, module.__dict__)
File "C:\Users\COMD\Downloads\makefrance.py", line 167, in <module>
probs_over_1 = ((over_1_goal / len(head_to_head['TotalGoals'])) * 100)
2.) Based on 1 above, modify the code to analyse a bigger data (attached)
Timeline: 2hrs
Budget: 20$