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.
有没有一种简单的方法来实现这一目标,而无需重新定义的东西呢?