[Python] Efficiently loading the index of a pandas dataframe

Discussão em 'Python' iniciado por Stack, Janeiro 26, 2025.

  1. Stack

    Stack Membro Participativo

    I'm working with large dataframe and I'd like to read its index only, without having to load the whole dataframe.

    I tried using usecols=0 which I thought would only load the first column, and I'll be able to extract the indices. But it parses the whole dataframe...

    Continue reading...

Compartilhe esta Página