def series64bitto32bit(s):
    if s.dtype == np.float64:
        return s.astype('float32')
    elif s.dtype == np.int64:
        return s.astype('int32')
    return s
Convert a Pandas series from 64 bit types to 32 bit types to save
dataset/ETHPy150Open UDST/urbansim/urbansim/utils/misc.py/series64bitto32bit