Skip to content

Commit

Permalink
Fix bug df to azure
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvdHeijden committed Sep 6, 2024
1 parent 4773b29 commit 62c97a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion df_to_azure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from .export import df_to_azure as df_to_azure

__version__ = "1.0.0"
__version__ = "1.0.1"

logging.basicConfig(
format="%(asctime)s.%(msecs)03d [%(levelname)-5s] [%(name)s] - %(message)s",
Expand Down
2 changes: 1 addition & 1 deletion df_to_azure/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def upload_to_blob(self):
datetime_dtypes = self.df.select_dtypes("datetime")
if datetime_dtypes.empty is False:
for col in datetime_dtypes.columns:
self.df[col] = self.df[col].astype(str)
self.df[col] = self.df[col].astype(str).replace("NaT", None)
data = self.df.to_parquet(index=False)
blob_client.upload_blob(data, overwrite=True)

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = df_to_azure
version = 1.0.0
version = 1.0.1
author = Zypp
author_email = hello@zypp.io
description = Automatically write pandas DataFrames to SQL by creating pipelines in Azure Data Factory with copy activity from blob to SQL
Expand Down

0 comments on commit 62c97a1

Please sign in to comment.