Skip to content

Commit

Permalink
changing applymap to map (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabinala authored Jan 9, 2025
1 parent 0845bea commit 6a41b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyciemss/integration_utils/observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def check_data(data_path: Union[str, pd.DataFrame]):
raise ValueError("Dataset cannot contain NaN or empty entries.")

# Check that there is no missing data in the form of None type or char values
if not data_df.applymap(lambda x: isinstance(x, (int, float))).all().all():
if not data_df.map(lambda x: isinstance(x, (int, float))).all().all():
raise ValueError(
"Dataset cannot contain None type or char values. All entries must be of type `int` or `float`."
)
Expand Down

0 comments on commit 6a41b1a

Please sign in to comment.