Skip to content

Commit 0b90a66

Browse files
committed
Linting
1 parent fc9f845 commit 0b90a66

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

examples/tpch/q02_minimum_cost_supplier.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,13 @@
9898
# We want to evaluate the entire data frame, so we specify this.
9999
window_frame = datafusion.WindowFrame("rows", None, None)
100100
df = df.with_column(
101-
"min_cost", F.window("min", [col("ps_supplycost")], partition_by=[col("ps_partkey")], window_frame=window_frame)
101+
"min_cost",
102+
F.window(
103+
"min",
104+
[col("ps_supplycost")],
105+
partition_by=[col("ps_partkey")],
106+
window_frame=window_frame,
107+
),
102108
)
103109

104110
df = df.filter(col("min_cost") == col("ps_supplycost"))

examples/tpch/q19_discounted_revenue.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474

7575
df = df.join(df_part, (["l_partkey"], ["p_partkey"]), "inner")
7676

77+
7778
# Create the user defined function (UDF) definition that does the work
7879
def is_of_interest(
7980
brand_arr: pa.Array,
@@ -112,6 +113,7 @@ def is_of_interest(
112113

113114
return pa.array(result)
114115

116+
115117
# Turn the above function into a UDF that DataFusion can understand
116118
is_of_interest_udf = udf(
117119
is_of_interest,

0 commit comments

Comments
 (0)