[Python] How to display dataframe index when executing a cell in marimo?

Discussão em 'Python' iniciado por Stack, Julho 25, 2025.

  1. Stack

    Stack Membro Participativo

    If I execute the following toy code in a Jupyter notebook:

    import pandas as pd

    pd.DataFrame({"col1": ["a", "b", "c", "d"], "col2": ["e", "f", "g", "h"]})


    The dataframe is displayed with its index (0, 1, 2, 3):

    [​IMG]

    But in marimo, the index is hidden when I run the same cell:

    [​IMG]

    Is there an option in marimo to display the index?

    Continue reading...

Compartilhe esta Página