-
Notifications
You must be signed in to change notification settings - Fork 73
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
concatWithKeys impl #1107
Conversation
* 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). |
There was a problem hiding this comment.
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() | |||
|
|||
/** |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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)
Closes #673.