Skip to content

Commit

Permalink
fix: remove date parsing from PostgresLoader
Browse files Browse the repository at this point in the history
This should be done via `transform.DataCleaning.switch_to_datetime` now and doing it via the loader was causing issues.
  • Loading branch information
stdavis authored and jacobdadams committed Oct 7, 2024
1 parent 270e4ba commit cc5ca85
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/palletjack/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cc5ca85

Please sign in to comment.