Skip to content

Commit b8f630e

Browse files
author
Scott Morken
committed
bugfix to support pandas 1.0 release:
pandas-dev/pandas#31708
1 parent ab7cce9 commit b8f630e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcbm/input/sit/sit_parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def unpack_column(table, column_description, table_name):
4343
col_name = column_description["name"]
4444
if "type" in column_description:
4545
try:
46-
data = data.astype(column_description['type'], skipna=True)
46+
data[data.notna()] = data.astype(column_description['type'])
4747
except ValueError:
4848
raise ValueError(
4949
f"{table_name} table, column: '{col_name}' contains values "

0 commit comments

Comments
 (0)