1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] get data from dataframe with pandas module

Discussão em 'Python' iniciado por Stack, Setembro 12, 2025.

  1. Stack

    Stack Membro Participativo

    import pandas

    data = pandas.read_csv("databooks.csv")
    print(data.titulo)


    All ok , but: print(data.autor)


    KeyError: 'autor'
    ​

    autor exists and is well written

    I expected the autor column from data. This column is showed when: print(data)

    Continue reading...

Compartilhe esta Página