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

Fixes related to Kotlin Notebook plugin integration #501

Merged
merged 4 commits into from
Nov 13, 2023

Conversation

ermolenkodev
Copy link
Contributor

No description provided.

…column names clashes

Moved `convertToDataFrame` function KotlinNotebookPluginUtils and made it public to make it acessible in Kotlin Notebook plugin. An auxiliary method to generate unique variations of a string was added to fix issue with column names clashes when convert intermediate object to dataframe.

Fixes KTNB-424, KTNB-415
@Jolanrensen Jolanrensen self-requested a review November 13, 2023 12:19
ermolenkodev and others added 3 commits November 13, 2023 15:37
Introduced two public methods named `sortByColumns` in KotlinNotebookPluginUtils for sorting a dataframe-like object, or a specific dataframe by multiple columns. This added functionality will aid in sorting dataframes in Kotlin Notebook plugin. Implemented measures to handle null dataframes and conflicting column sizes.

Fixes KTNB-426.

Co-authored-by: Jolan Rensen <Jolan.Rensen@jetbrains.com>
Updated the 'generateRandomVariationOfString' function to 'generateRandomVariationOfColumnName' in 'KotlinNotebookPluginUtils.kt' to ensure uniqueness among used names. ColumnNameGenerator was used to create unique column names based on preferred name and used column names.
Copy link
Collaborator

@koperagen koperagen left a comment

Choose a reason for hiding this comment

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

generateRandomVariationOfColumnName can be renamed to ..uniqueVariation..

@koperagen
Copy link
Collaborator

@ermolenkodev Thank you!

@ermolenkodev ermolenkodev merged commit e47bc83 into Kotlin:master Nov 13, 2023
1 check passed
ermolenkodev added a commit that referenced this pull request Nov 14, 2023
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.

3 participants