Skip to content

Commit

Permalink
fixed deprecation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolanrensen committed Mar 25, 2024
1 parent a312860 commit a245a51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import org.jetbrains.kotlinx.dataframe.impl.getListType
import kotlin.reflect.typeOf

internal fun <T, C> DataFrame<T>.implodeImpl(dropNA: Boolean = false, columns: ColumnsSelector<T, C>): DataFrame<T> {
return groupBy { except(columns) }.updateGroups {
return groupBy { allExcept(columns) }.updateGroups {
replace(columns).with { column ->
val (value, type) = when (column.kind()) {
ColumnKind.Value -> (if (dropNA) column.dropNA() else column).toList() to getListType(column.type())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import org.jetbrains.kotlinx.dataframe.impl.getListType
import kotlin.reflect.typeOf

internal fun <T, C> DataFrame<T>.implodeImpl(dropNA: Boolean = false, columns: ColumnsSelector<T, C>): DataFrame<T> {
return groupBy { except(columns) }.updateGroups {
return groupBy { allExcept(columns) }.updateGroups {
replace(columns).with { column ->
val (value, type) = when (column.kind()) {
ColumnKind.Value -> (if (dropNA) column.dropNA() else column).toList() to getListType(column.type())
Expand Down

0 comments on commit a245a51

Please sign in to comment.