polars.exceptions.DuplicateError#

exception polars.exceptions.DuplicateError[source]#

Exception raised when a column name is duplicated.

Examples

>>> df = pl.DataFrame({"a": [1, 1, 1]})
>>> pl.concat([df, df], how="horizontal")
polars.exceptions.DuplicateError: unable to hstack, column with name "a" already exists