I found the answer to this question: KeyError('pandas._libs.interval') when opening a dataframe in Spyder
And one of the answers was:
How do I get to