We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@crawlee/core
{ name: 'John', age: 30 }
{ age: 42, name: 'Adam' }
name,age John,30 42,Adam
I would've expected the order of keys->columns to be determined by the first object in the dataset, e.g.
name,age John,30 Adam,42
Or otherwise, the importance of key order should be noted somewhere in the docs.
import { Dataset } from 'crawlee'; const main = async () => { const datasetName = 'example-dataset'; let dataset = await Dataset.open(datasetName); await dataset.drop(); dataset = await Dataset.open(datasetName); await dataset.pushData({ name: 'John', age: 30 }); await dataset.pushData({ age: 42, name: 'Adam' }); await dataset.exportToCSV(`${datasetName}.csv`); console.log((await dataset.getData()).items); }; void main();
3.11.5
v20.17.0
MacOS, Linux (Arch)
next
No response
The text was updated successfully, but these errors were encountered:
fix(core): ensure correct column order in CSV export
29efe12
Closes #2718
b66784f
B4nan
Successfully merging a pull request may close this issue.
Which package is this bug report for? If unsure which one to select, leave blank
@crawlee/core
Issue description
I would've expected the order of keys->columns to be determined by the first object in the dataset, e.g.
Or otherwise, the importance of key order should be noted somewhere in the docs.
Code sample
Package version
3.11.5
Node.js version
v20.17.0
Operating system
MacOS, Linux (Arch)
Apify platform
I have tested this on the
next
releaseNo response
Other context
The text was updated successfully, but these errors were encountered: