📅  最后修改于: 2022-03-11 14:46:07.397000             🧑  作者: Mango
# Convert TimeDelta column (5 days etc.) into an integer column (5)
import numpy as np
df['timeDelta'] = (df['timeDelta'] / np.timedelta64(1,'D')).astype(int)