Turn Numpy Array Into Torch Tensor Dtype Pandas Groupby