Pandas compatability fix