Skip to content

Commit

Permalink
small fix for two failing tests in #713, where in implodeImpl a tempo…
Browse files Browse the repository at this point in the history
…rary column was created with nulls in a FrameColumn
  • Loading branch information
Jolanrensen committed Jul 30, 2024
1 parent cd3747f commit 3037a97
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ internal fun <T, C> DataFrame<T>.implodeImpl(dropNA: Boolean = false, columns: C
first = false
value
} else {
null
// these rows will not be taken into account,
// but we cannot leave them empty, as `map` creates a full column
when (column.kind()) {
ColumnKind.Value -> emptyList<Any?>()
ColumnKind.Group -> DataFrame.empty()
ColumnKind.Frame -> emptyList<AnyFrame>()
}
}
}
}[0..0]
}[0..0] // takes only the first row
}.concat()

0 comments on commit 3037a97

Please sign in to comment.