File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,12 @@ cdef class DefaultHandler(EventHandler):
103103
104104
105105 df = pd.DataFrame(df_data, columns = self .columns)
106- time_columns = (column for column in df.columns if ' Time' in column and ' TimeNanos' not in column)
106+ time_columns = (column for column in df.columns
107+ if ' Time' in column
108+ and ' TimeNanos' not in column)
107109 for column in time_columns:
108- df.loc[:, column] = df.loc[:, column].astype(' datetime64[ms]' )
110+ df.loc[:, column] = df.loc[:, column].values. astype(' datetime64[ms]' )
109111 if ' TimeNanos' in df.columns and ' Time' in df.columns:
110- df.loc[:, ' Time' ] += df.loc[:, ' TimeNanos' ].astype(' timedelta64[ns]' )
112+ df.loc[:, ' Time' ] += df.loc[:, ' TimeNanos' ].values. astype(' timedelta64[ns]' )
111113 df.drop(columns = [' TimeNanos' ], inplace = True )
112114 return df
You can’t perform that action at this time.
0 commit comments