Skip to content

Add columnDescriptors option to arrayDataFrame#338

Merged
platypii merged 1 commit intomasterfrom
array-descriptors
Nov 29, 2025
Merged

Add columnDescriptors option to arrayDataFrame#338
platypii merged 1 commit intomasterfrom
array-descriptors

Conversation

@platypii
Copy link
Copy Markdown
Contributor

Add columnDescriptors option to arrayDataFrame.
Remove columnsMetadata option from arrayDataFrame. (BREAKING)

This solves the problem where I want to have an array dataframe where I KNOW the column names, but have zero rows.

const columnDescriptors = [
  { name: "col_name" },
]
arrayDataFrame([], [], { columnDescriptors })

Remove columnsMetadata option from arrayDataFrame. (BREAKING)

This solves the problem where I want to have an array dataframe
where I KNOW the column names, but have zero rows.
@platypii platypii requested a review from severo November 29, 2025 09:04
@platypii platypii merged commit 93b4ae7 into master Nov 29, 2025
5 checks passed
@platypii platypii deleted the array-descriptors branch November 29, 2025 09:04
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.

Yes, it's a better API. If we have metadata for the columns, we have to know their names. It's better than guessing from the first data row

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