fixing compat changes in pandas