Извлечь значение литерала PolarsPython

Программы на Python
Anonymous
 Извлечь значение литерала Polars

Сообщение Anonymous »

Если у меня есть литерал Polars, как я могу извлечь значение?
import polars as pl

expr = pl.lit(0.5)

val = float(expr)
# TypeError: float() argument must be a string or a real number, not 'Expr'


Подробнее здесь: https://stackoverflow.com/questions/717 ... rs-literal

Вернуться в «Python»