https://researchdatapod.com/how-to-solve-python-valueerror-min-arg-is-an-empty-sequence/
Python ValueError: min() arg is an empty sequence