Skip to content

Collect keys from first 100 rows for arrayDataFrame#406

Merged
platypii merged 1 commit intomasterfrom
array-dataframe-keys
Feb 2, 2026
Merged

Collect keys from first 100 rows for arrayDataFrame#406
platypii merged 1 commit intomasterfrom
array-dataframe-keys

Conversation

@platypii
Copy link
Copy Markdown
Contributor

@platypii platypii commented Feb 2, 2026

Previously it would only look at the first row. This resulted in sub-optimal dataframes with missing columns for data like:

[
  { id: 1, name: 'Alice' },
  { id: 2, age: 25 },
  { id: 3, email: 'charlie@example.com' },
]

This PR changes it to aggregate the keys of up to the first 100 rows of json objects. This should help with jsonl files especially.

@platypii platypii requested a review from severo February 2, 2026 00:42
Copy link
Copy Markdown
Contributor

@severo severo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, and it's free since the data is already there.

@platypii platypii merged commit 40a4c07 into master Feb 2, 2026
5 checks passed
@platypii platypii deleted the array-dataframe-keys branch February 2, 2026 08:17
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.

2 participants