From cc5ca85ed3d608eb5c8d5083c5bb039a96d4596a Mon Sep 17 00:00:00 2001 From: stdavis Date: Mon, 7 Oct 2024 12:58:20 -0600 Subject: [PATCH] fix: remove date parsing from PostgresLoader This should be done via `transform.DataCleaning.switch_to_datetime` now and doing it via the loader was causing issues. --- src/palletjack/extract.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/palletjack/extract.py b/src/palletjack/extract.py index f66f4ce..f7e200d 100644 --- a/src/palletjack/extract.py +++ b/src/palletjack/extract.py @@ -543,9 +543,6 @@ def read_table_into_dataframe(self, table_name, index_column, crs, spatial_colum ) spatial_dataframe = pd.DataFrame.spatial.from_geodataframe(dataframe, column_name=spatial_column) - for column in spatial_dataframe.select_dtypes(include=["datetime64[ns, UTC]"]): - self._class_logger.debug("Converting column `%s` to ISO string format", column) - spatial_dataframe[column] = spatial_dataframe[column].apply(pd.Timestamp.isoformat) self._class_logger.debug("Dataframe shape: %s", spatial_dataframe.shape) if len(spatial_dataframe.index) == 0: