Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
wgifford authored and ssiegel95 committed Jan 15, 2025
1 parent bb2a949 commit 786310b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/boilerplate/dataframe_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def id_cols_are_int_or_string_types(data: pd.DataFrame, schema: Dict[str, Any])
dtypes = data.dtypes
for id in id_cols:
if not (pd.api.types.is_string_dtype(dtypes[id]) or pd.api.types.is_integer_dtype(dtypes[id])):
return 1, f"data for identifier column {id} must not be a string or integer type."
return 1, f"data for identifier column {id} must be a string or integer type."
return 0, None


Expand Down

0 comments on commit 786310b

Please sign in to comment.