We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7efc1bf commit d39592aCopy full SHA for d39592a
spec/API_specification/examples/tpch/q5.py
@@ -48,7 +48,8 @@ def query(
48
49
new_column = (
50
result.get_column_by_name("l_extendedprice")
51
- * (result.get_column_by_name("l_discount") * -1 + 1)
+ # need the "add right operations first"
52
+ * (1 - result.get_column_by_name("l_discount")) # type: ignore
53
).rename("revenue")
54
result = result.assign(new_column)
55
result = result.select(["revenue", "n_name"])
0 commit comments