Skip to content

concatWithKeys impl#1107

Merged
AndreiKingsley merged 4 commits intomasterfrom
concat_with_keys
Apr 4, 2025
Merged

concatWithKeys impl#1107
AndreiKingsley merged 4 commits intomasterfrom
concat_with_keys

Conversation

@AndreiKingsley
Copy link
Copy Markdown
Collaborator

@AndreiKingsley AndreiKingsley commented Mar 24, 2025

Closes #673.

@Jolanrensen Jolanrensen self-requested a review March 25, 2025 11:55
* Concatenates all groups in this [GroupBy] into a single [DataFrame],
* preserving and including all grouping key columns that are not present in the group's columns.
*
* Doesn't affect key columns that have the same names as columns inside the groups (even if their content differs).
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

*name


public fun <T, G> GroupBy<T, G>.concat(): DataFrame<G> = groups.concat()

/**
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Really nice and helpful kdoc :) Maybe something similar could be put on the documentation website?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

For sure, we will put it on website!

package org.jetbrains.kotlinx.dataframe.plugin

import org.jetbrains.kotlin.fir.FirSession
import org.jetbrains.kotlinx.dataframe.plugin.extensions.KotlinTypeFacade
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you revert this? It'll be easier for me to merge changes from DataFrame to Kotlin repo. I'll optimize imports there (and use start imports according to their codestyle)

@AndreiKingsley AndreiKingsley merged commit d514df7 into master Apr 4, 2025
6 checks passed
@AndreiKingsley AndreiKingsley deleted the concat_with_keys branch April 4, 2025 10:00
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.

Fix concat

3 participants