This can be fixed by updating Pandas with pip install --upgrade pandas.
If this, when you attempt this with an updated Pandas version, gives you ImportError: cannot import name 'find_stack_level' from 'pandas.util._exceptions', then use pip install pandas==1.3.2 to avoid that error as well.