Skip to content

Fixes slicing ValueColumn<AnyFrame?> -> FrameColumn#1928

Open
Jolanrensen wants to merge 3 commits into
masterfrom
slicing-nullable-df-column
Open

Fixes slicing ValueColumn<AnyFrame?> -> FrameColumn#1928
Jolanrensen wants to merge 3 commits into
masterfrom
slicing-nullable-df-column

Conversation

@Jolanrensen

Copy link
Copy Markdown
Collaborator

Fixes #1926 by letting slicing operations on ValueColumn potentially return a FrameColumn.

Like #1925 this points at a deeper issue with the way we handle dataframes inside columns, but at least does this make it consistent with update, convert, replace etc.

@Jolanrensen Jolanrensen requested a review from koperagen July 10, 2026 15:56
it.type().isSubtypeOf(typeOf<DataFrame<*>>()) shouldBe true
}

df["col"].dropNulls() // should work correctly

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

wrap with shouldNotThrow


df["col"].dropNulls() // should work correctly
val droppedDf = df.dropNulls("col")
droppedDf["col"].let {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please split into multiple tests

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nested class if you prefer to have some common "subject under test"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Actually, I think this test(s) should probably be moved elsewhere anyways, since we don't necessarily test drop, but some lower level functionality

@koperagen koperagen added this to the 1.0.0-Beta6 milestone Jul 10, 2026
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.

Slicing operations on DataColumn<AnyFrame?> can throw incorrect exceptions

2 participants