Skip to content

DynamicDataFrameBuilder improvements #1082

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

Merged
merged 3 commits into from
Mar 5, 2025
Merged

Conversation

AndreiKingsley
Copy link
Collaborator

Closes #715.

@Jolanrensen Jolanrensen self-requested a review March 4, 2025 11:07
* A builder class for dynamically constructing a DataFrame with provided columns.
* Allows adding columns manually while automatically handling duplicate column names by assigning unique names.
*
* @property checkDuplicateValues Whether to check for duplicate column (with identical names and values)
Copy link
Collaborator

Choose a reason for hiding this comment

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

not clear what "to check" means, at least not what it does. What actually happens when I set it to false or true?

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah I see you explain it below, best to have it here too

public fun get(column: String): AnyCol? = cols[column]

/**
* Converts the current `DynamicDataFrameBuilder` instance into a `DataFrame`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

using [] works better than just backticks, it's clickable and refactor safe

@AndreiKingsley AndreiKingsley merged commit a84c30c into master Mar 5, 2025
6 checks passed
@AndreiKingsley AndreiKingsley deleted the dynamic_df_builder branch March 5, 2025 20:40
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.

"Smart" column add in DynamicDataFrameBuilder
2 participants