Python: reduce precision pandas timestamp dataframe
You could convert the underlying datetime64[ns] values to datetime64[s] values using astype: In [11]: df[‘Time’] = df[‘Time’].astype(‘datetime64[s]’) In [12]: df Out[12]: Record_ID Time 0 94704 2014-03-10 07:19:19 1 94705 2014-03-10 07:21:44 2 94706 2014-03-10 07:21:45 3 94707 2014-03-10 07:21:54 4 94708 2014-03-10 07:21:55 Note that since Pandas Series and DataFrames store all datetime values as … Read more