Skip to content

Commit

Permalink
Fix/don't return empty dataframe in outlier filter (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock authored Mar 25, 2024
1 parent 02842aa commit 07ae177
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "FSRS-Optimizer"
version = "4.26.6"
version = "4.26.7"
readme = "README.md"
dependencies = [
"matplotlib>=3.7.0",
Expand Down
2 changes: 0 additions & 2 deletions src/fsrs_optimizer/fsrs_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,6 @@ def remove_outliers(group: pd.DataFrame) -> pd.DataFrame:
).index

total = sum(grouped_group[("y", "count")])
if total <= 20:
return pd.DataFrame()
has_been_removed = 0
for i in sort_index:
count = grouped_group.loc[i, ("y", "count")]
Expand Down

0 comments on commit 07ae177

Please sign in to comment.