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

FR: Option to choose _how many_ rows are used to autodetect columns #1051

Open
SkepticMystic opened this issue Apr 29, 2024 · 1 comment
Open

Comments

@SkepticMystic
Copy link

When unparsing an object array, only the first object is used to autodetect the columns for the final csv. However, if the second object has fields the first doesn't, they'll be missing in the output.

One can certainly do this manually by tracking and building a set of unique fields, then passing it under config.columns. But it would obviously be nice if Papaparse can do this for us.

@khaleel56
Copy link

It would be immensely helpful if PapaParse could retain all columns in the output CSV, even when the number of columns varies across rows

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

2 participants