Skip to content

concatWithKeys impl #1107

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 4 commits into from
Apr 4, 2025
Merged

concatWithKeys impl #1107

merged 4 commits into from
Apr 4, 2025

Conversation

AndreiKingsley
Copy link
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
Collaborator

Choose a reason for hiding this comment

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

*name

@@ -40,6 +43,64 @@ public fun <T> DataFrame<T>.concat(frames: Iterable<DataFrame<T>>): DataFrame<T>

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

/**
Copy link
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
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!

@@ -6,49 +6,6 @@
package org.jetbrains.kotlinx.dataframe.plugin

import org.jetbrains.kotlin.fir.FirSession
import org.jetbrains.kotlinx.dataframe.plugin.extensions.KotlinTypeFacade
Copy link
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