Skip to content

Output of polars.Series.cut returns ValueError #574

Description

@mika-long

I have a dataframe created using polars. Running the following line of code:

df.select('median_income').to_series().cut([1.5, 3.0, 4.6, 6], 
                                          labels=["1", "2", "3", "4", "5"]).plot.hist()

gave me the following error:

ValueError: DataFusion error: Internal error: Physical input schema should be the same as the one converted from logical input schema. Differences: .
This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker
    Context[0]: Failed to query node values

I am using polars version 1.35.1 and altair version 6.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions