3 Ways to Fix AttributeError in Pandas