Skip to content

Commit dff3758

Browse files
committed
Avoid wrapping of column groups by dataFrameOf() in convertToDataFrame() to align rendering with column access and make it conform to the structure of data
1 parent 2558177 commit dff3758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/jupyter/KotlinNotebookPluginUtils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,13 @@ public object KotlinNotebookPluginUtils {
236236

237237
is FormattedFrame<*> -> dataframeLike.df
238238

239-
is AnyCol -> dataFrameOf(dataframeLike)
239+
is AnyFrame -> dataframeLike
240240

241241
is AnyRow -> dataframeLike.toDataFrame()
242242

243243
is GroupBy<*, *> -> dataframeLike.toDataFrame()
244244

245-
is AnyFrame -> dataframeLike
245+
is AnyCol -> dataFrameOf(dataframeLike)
246246

247247
is DisableRowsLimitWrapper -> dataframeLike.value
248248

0 commit comments

Comments
 (0)