[Python] Polars / Python Limits Number of Printed Table Output Rows

Discussão em 'Python' iniciado por Stack, Abril 18, 2025.

  1. Stack

    Stack Membro Participativo

    Does anyone know why polars (or maybe my pycharm setup or python debugger) limits the number of rows in the output? This drives me nuts.

    Here is the polars code i am running but I do suspect its not polars specific as there isnt much out there on google (and chatgpt said its info is too old haha).

    import polars as pl

    df = pl.scan_parquet('/path/to/file.parquet')
    result_df =(
    df
    .filter(pl.col("condition_category") == 'unknown')
    .groupby("type")
    .agg(
    [
    pl.col("type").count().alias("counts"),
    ]
    )
    ).collect()
    print(result_df)



    [​IMG]

    Continue reading...

Compartilhe esta Página