Skip to content

Table.summary raises an error if one column contains only null values #320

@Marsmaennchen221

Description

@Marsmaennchen221

Describe the bug

If a column of a table contains only null values, the method Table.summary raises an IndexError because the stability of a column with only null values is not defined (#319).

To Reproduce

from safeds.data.tabular.containers import Table

table = Table({"Column1": [None, 2], "Column2": [None, None]})

print(table.summary())

Expected behavior

The stability of a column with only null values should just be skipped and displayed in the returned table as a minus: -

Screenshots (optional)

No response

Additional Context (optional)

Related to #319

Metadata

Metadata

Labels

releasedIncluded in a release

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions