Skip to content

DataFrame select: fails when no rows are selected #91

@AtharvaKhare

Description

@AtharvaKhare

Running the following block:

df := DataFrame withRows: #((1) (2) (3) (4)).
df select: [ :row | (row at: 1) >= 5 ].

leads to SubscriptOutOfBounds: 1, due to first in DataFrameInternal withRows::

numberOfColumns := anArrayOfArrays first size.

Shouldn't it return an empty Dataframe instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions