[Python] Mutate a column in Ibis when column name has spaces

Discussão em 'Python' iniciado por Stack, Setembro 25, 2024.

  1. Stack

    Stack Membro Participativo

    Given a dataframe that has a column with a space:

    ibis.memtable({
    'colname with space': ['a', 'b', 'c']
    })


    I want to mutate this column. How do I reference it in the .mutate method? One way is table['colname with space'], however I consider this at best a workaround that doesn't work with anonymous tables.

    Continue reading...

Compartilhe esta Página