Skip to content

fix: remove_outliers always prints 'dataset contains nan values...' - #3

Open
JuanJoZP wants to merge 1 commit into
lewistrotter:mainfrom
JuanJoZP:patch-1
Open

fix: remove_outliers always prints 'dataset contains nan values...'#3
JuanJoZP wants to merge 1 commit into
lewistrotter:mainfrom
JuanJoZP:patch-1

Conversation

@JuanJoZP

Copy link
Copy Markdown

The method previously prints the warning if bool(ds.isnull().any()) is true, however, as ds.isnull().any() returns a xarray.Dataset object its bool value is always true, regardless of the presence of nan values.

with bool(ds.isnull().any().to_array().any()) the issue is fixed.

The method previously prints the warning if bool(ds.isnull().any()) is true, however, as ds.isnull().any() returns a xarray.Dataset object its bool value is always true, regardless of the presence of nan values.

with bool(ds.isnull().any().to_array().any()) the issue is fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant