https://researchdatapod.com/python-valueerror-max-arg-is-an-empty-sequence/
How to Solve Python ValueError: max() arg is an empty sequence