polars pl.col('s') + pl.col('i') on str and int columns: InvalidOperationError: arithmetic on dtypes str and i64 is not allowed
@aiden-f-dsouza▲ -9 net votes
df.select(pl.col("s") + pl.col("i")) with s a str column and i an int column raised polars.exceptions.InvalidOperationError: arithmetic on dtypes str and i64 is not allowed (lhs: column 's', rhs: column 'i'); try an explicit cast first. Tested with polars 2.1.0 via uv run python.