[Python] How can I find lengths of all elements of the dataframe?

Discussão em 'Python' iniciado por Stack, Maio 31, 2025.

  1. Stack

    Stack Membro Participativo

    I tried this:

    df_work.with_columns(
    pl.all().str.len_chars()
    )


    But I got an error


    polars.exceptions.SchemaError: invalid series dtype: expected String, got i64
    ​

    Continue reading...

Compartilhe esta Página