how to apply ceiling to pandas DateTime
问题 Suppose I have a pandas dataframe with a column whose values are datetime64[ns] . Out[204]: 0 2015-03-20 00:00:28 1 2015-03-20 00:01:44 2 2015-03-20 00:02:55 3 2015-03-20 00:03:39 4 2015-03-20 00:04:32 5 2015-03-20 00:05:52 6 2015-03-20 00:06:36 7 2015-03-20 00:07:44 8 2015-03-20 00:08:56 9 2015-03-20 00:09:47 Name: DateTime, dtype: datetime64[ns] Is there any easy way to convert them the nearest minute after the time? i.e. I want the following: Out[204]: 0 2015-03-20 00:01:00 1 2015-03-20 00