Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
python-version: ['3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v.2.9.0 - Unreleased
====================

* Breaking: Dropped support for python 3.10
* Change: Updated some dependencies to latest versions.

v.2.8.1
=======

Expand Down
6 changes: 3 additions & 3 deletions category_encoders/count.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ def combine_min_categories(self, X):
]
)

self._min_group_categories[col] = {
cat: min_group_mapper_name for cat in mapper.loc[min_groups_idx].index.tolist()
}
self._min_group_categories[col] = dict.fromkeys(
mapper.loc[min_groups_idx].index.tolist(), min_group_mapper_name
)

if not min_groups_idx.all():
mapper = mapper.loc[~min_groups_idx]
Expand Down
2 changes: 1 addition & 1 deletion category_encoders/ordinal.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def _validate_supplied_mapping(
self, supplied_mapping: list[dict[str, str | dict | pd.Series]]
) -> list[dict[str, str | pd.Series]]:
"""
validate the supplied mapping and convert the actual mapping per column to a pandas series.
Validate the supplied mapping and convert the actual mapping per column to a pandas series.

:param supplied_mapping: mapping as list of dicts.
They actual mapping can be either a dict or pd.Series
Expand Down
Loading