Skip to content
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

Bug: wrong dynamic typing when first rows are of a different type #1067

Open
nonodev96 opened this issue Sep 26, 2024 · 0 comments
Open

Bug: wrong dynamic typing when first rows are of a different type #1067

nonodev96 opened this issue Sep 26, 2024 · 0 comments

Comments

@nonodev96
Copy link

I am having problems with papaparse and danfojs, the dynamic typing fails, because it detects wrong the data type of the series if the first elements are of type number, and then they are of type float or text.

Users can upload any type of csv and dynamic typing fails, and I cannot hardcode anything.

Is there any way to increase the number of rows to read to define the data type?
Users can upload any type of csv and dynamic typing fails, and I cannot hardcode anything.

Is there any way to increase the number of rows to read to define the data type?

An example happens with this dataset with FAF column. The column must be float32, but it detects it as integer, it happens in other cases also with numbers that must be categorical (string).

const df = await dfd.readCSV(path, paparseConfig);
console.log(df)
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

No branches or pull requests

1 participant