Skip to content

Commit fd0d0dd

Browse files
committed
auto linting
1 parent dedfb28 commit fd0d0dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chefboost/training/Training.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,12 +511,12 @@ def buildDecisionTree(
511511

512512
if df.Decision.dtypes == "object": # classification
513513
pivot = pd.DataFrame(subdataset.Decision.value_counts()).reset_index()
514-
514+
515515
if pd.__version__.split(".")[0] == "1":
516516
pivot = pivot.rename(columns={"Decision": "Instances", "index": "Decision"})
517-
else: # if pd.__version__.split(".")[0] == "2":
517+
else: # if pd.__version__.split(".")[0] == "2":
518518
pivot = pivot.rename(columns={"Decision": "Instances", "count": "Decision"})
519-
519+
520520
pivot = pivot.sort_values(by=["Instances"], ascending=False).reset_index()
521521

522522
else_decision = f"return '{pivot.iloc[0].Decision}'"

0 commit comments

Comments
 (0)