-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Cannot calculate mean, unexpected type of argument" when data has nulls #335
Comments
Thanks for raising this issue, and yes, we skip NaN values before computations. I’ll take a look ASAP. |
Update: @codeheart09 This has been fixed in the latest release. If you need help migrating to the latest version, see: https://danfo.jsdata.org/examples/migrating-to-the-stable-version-of-danfo.js |
I seem to be hitting this with v1.1.1. Some values are listed as
Is there a regression since v1.0.0, or do we need to manually filter out the null values? |
Using nodejs v16.13.2 if that helps. |
2023 Update: I ran into the same issue The error occurred when the column names weren't specified in the input CSV but were specified via the When the column names were specified in the input CSV and So I'm guessing it's a bug from parsing? |
When I call
.describe()
on a data frame with some null values, I get this error:You can check the dataset here: https://raw.githubusercontent.com/ageron/handson-ml2/master/datasets/housing/housing.tgz
Here is the code I have:
And if I
console.log
the dataframe itself, the data seem to be imported correctly.But it indeed has some null values in some rows.
Shouldn't the lib skip the null values? Or I'm missing something?
The text was updated successfully, but these errors were encountered: