diff --git a/utils/g5505_utils.py b/utils/g5505_utils.py index a145df1..b413271 100644 --- a/utils/g5505_utils.py +++ b/utils/g5505_utils.py @@ -161,6 +161,8 @@ def convert_dataframe_to_np_structured_array(df: pd.DataFrame): dtype.append((col, 'i4')) # Assuming 32-bit integer elif pd.api.types.is_float_dtype(col_dtype): dtype.append((col, 'f4')) # Assuming 32-bit float + elif pd.api.types.is_bool_dtype(col_dtype): + dtype.append((col,bool)) else: # Handle unsupported data types print(f"Unsupported dtype found in column '{col}': {col_data.dtype}")