Pandas compatibility warning

Fixed compatibility