Skip to content

Commit c0c69a6

Browse files
committed
fix
1 parent bbdac40 commit c0c69a6

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

_doc/examples/ml/plot_template_data.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ def make_pipeline(table, cible):
105105
if num_cols:
106106
transformers.append(("num", StandardScaler(), num_cols))
107107
if cat_cols:
108-
transformers.append(
109-
("cats", OneHotEncoder(handle_unknown="ignore"), cat_cols)
110-
)
108+
transformers.append(("cats", OneHotEncoder(handle_unknown="ignore"), cat_cols))
111109

112110
model = Pipeline(
113111
[

teachpyx/tools/pandas.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ def plot_waterfall(
115115
_, ax = plt.subplots(1, 1)
116116

117117
bar_colors = [
118-
colors[2]
119-
if kind == "total"
120-
else (colors[0] if value >= 0 else colors[1])
118+
colors[2] if kind == "total" else (colors[0] if value >= 0 else colors[1])
121119
for value, kind in zip(plot_df["value"], plot_df["kind"])
122120
]
123121
ax.bar(

0 commit comments

Comments
 (0)