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] AttributeError: module 'ibis.selectors' has no attribute 'index'

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

  1. Stack

    Stack Membro Participativo

    Might just be a bug, but I'm wondering if I'm doing something obvious and wrong. I'm trying to select columns by index just like this [reference from the ibis docs].(https://ibis-project.org/reference/selectors#examples-10)

    import ibis
    import ibis.selectors as s
    spotify = ibis.duckdb.connect()
    spotify.read_csv("hf://datasets/maharshipandya/spotify-tracks-dataset/dataset.csv", table_name = "tracks")
    tracks = spotify.table("tracks")
    tracks.select(s.index[1:4])


    I get the following error: AttributeError: module 'ibis.selectors' has no attribute 'index'. Is there some way to select multiple columns using their numeric indexes?

    Continue reading...

Compartilhe esta Página