嘗試Series.apply函數調用do _ something _ with _ time,您自然會得到壹個新的已處理時間列。
df . time 2 = df . time . apply(do _ some _ things _ with _ time)
或者直接將其分配給df.time