Skip to content

Commit

Permalink
bump snapshotting coerce_types logic to handle NAN values for integers (
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 authored Sep 30, 2024
1 parent 803eb0c commit a6389d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gluestick/etl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ def snapshot_records(
for column, dtype in df_types.items():
if dtype == 'bool':
merged_data[column] = merged_data[column].astype('boolean')
elif dtype in ["int64", "int32", "Int32", "Int64"]:
merged_data[column] = merged_data[column].astype("Int64")
else:
merged_data[column] = merged_data[column].astype(dtype)
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="gluestick",
version="2.1.24",
version="2.1.25",
description="ETL utility functions built on Pandas",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit a6389d7

Please sign in to comment.