(self)
| 4871 | return f"<dask_expr.expr.Scalar: expr={self.expr}, dtype={self.dtype}>" |
| 4872 | |
| 4873 | def __bool__(self): |
| 4874 | raise TypeError( |
| 4875 | f"Trying to convert {self} to a boolean value. Because Dask objects are " |
| 4876 | "lazily evaluated, they cannot be converted to a boolean value or used " |
| 4877 | "in boolean conditions like if statements. Try calling .compute() to " |
| 4878 | "force computation prior to converting to a boolean value or using in " |
| 4879 | "a conditional statement." |
| 4880 | ) |
| 4881 | |
| 4882 | def __dask_postcompute__(self): |
| 4883 | return first, () |
nothing calls this directly
no outgoing calls
no test coverage detected