BUG: Fixed _format_labels in tile.py for np.inf.

Fixes issue https://github.com/pydata/pandas/issues/3415.