I kept getting errors on the following
C:\Users\jake\.spyder-py3\untitled6.py:45: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrameSee the caveats in the documentation:
https://pandas.pydata.org/pandas-doc...-versus-a-copy scl.loc['Louisiana']['URL']='louisiana-lafayette'C:\Users\jake\.spyder-py3\untitled6.py:46: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrameSee the caveats in the documentation:
https://pandas.pydata.org/pandas-doc...-versus-a-copy scl.loc['VMI']['URL']='virginia-military-institute'Traceback (most recent call last):
The two lines of code didn't really match the rest of the format so just to experiment I pulled them out and ran it and it worked.
I ran 2021 and it came back cleaner than 2020 and 2019. I think what's happening is that because the previous seasons have more games that there are page breaks. The column stats headers just keep getting inserted. Easy to clean up.