3 Ways to Solve Series Objects Are Mutable and Cannot be Hashed (Python)
This error occurs when you use mutable objects as keys for a dictionary.
Mutable data types cannot be dictionary keys, and using them as such will raise a TypeError with the message “unhashable type”.