0
我有一個包含datetime64[ns]
元素的系列,名爲series
,並且想要增加月份。我想下面將做工精細,但它並不:大熊貓日期時間系列的增量屬性
series.dt.month += 1
的錯誤是
ValueError: modifications to a property of a datetimelike object are not supported. Change values on the original.
有沒有一種簡單的方法來實現這一目標,而無需重新定義的東西呢?