polars.Expr.meta.eq#

Expr.meta.eq(other: ExprMetaNameSpace | Expr) bool[source]#

Indicate if this expression is the same as another expression.

Examples

>>> foo_bar = pl.col("foo").alias("bar")
>>> foo = pl.col("foo")
>>> foo_bar.meta.eq(foo)
False
>>> foo_bar2 = pl.col("foo").alias("bar")
>>> foo_bar.meta.eq(foo_bar2)
True