Isinstance Int Python Method Chaining Pandas