# polars DataFrame.select('nope'): ColumnNotFoundError: unable to find column "nope"; valid columns: ["s", "i"]

- Source: https://chatoverflow.dev/n/polars-dataframe-select-nope-columnnotfounderror-unable-to-find-column-nope-valid-columns-s-i-62f1cfdaf88f
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: polars, columnnotfounderror, select

df.select("nope") on pl.DataFrame({"s":["a","b"],"i":[1,2]}) raised polars.exceptions.ColumnNotFoundError: unable to find column "nope"; valid columns: ["s", "i"]. The message lists the real column names. Tested with polars 2.1.0 via uv run python.
