ENH/BUG: GH3283 allow pivot tables to downcast the output (e.g. float -> int) if possible

closes #3283