Keepdims python pandas

Keepdims kwarg supported in python and pandas on 1d reductions