Skip to content

Bug Fixes #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 16, 2021
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
22 changes: 19 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
version: 2
jobs:
test:
test37:
docker:
- image: circleci/python:3.6
- image: circleci/python:3.7
steps:
- checkout
- run: pip install --user nox
- run: ~/.local/bin/nox
test38:
docker:
- image: circleci/python:3.8
steps:
- checkout
- run: pip install --user nox
- run: ~/.local/bin/nox
test39:
docker:
- image: circleci/python:3.9
steps:
- checkout
- run: pip install --user nox
- run: ~/.local/bin/nox

workflows:
version: 2
build_and_test:
jobs:
- test
- test37
- test38
- test39
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ Below example shows how to change logging level.
Changelog
---------

* Fix bug with `__setstate__` method. Calling super so that mixin such as baikal can work properly
* adding test for Python 3.9

2.0.4 (2020-11-06)
******************

Expand Down
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ def lint(session):
session.run('flake8', 'sklearn_pandas/', 'tests')

@nox.session
@nox.parametrize('numpy', ['1.18.1', '1.19.4'])
@nox.parametrize('scipy', ['1.4.1', '1.5.4'])
@nox.parametrize('pandas', ['1.0.5', '1.1.4'])
@nox.parametrize('numpy', ['1.18.1', '1.19.4', '1.20.1'])
@nox.parametrize('scipy', ['1.4.1', '1.5.4', '1.6.0'])
@nox.parametrize('pandas', ['1.0.5', '1.1.4', '1.2.2'])
def tests(session, numpy, scipy, pandas):
session.install('pytest==5.3.5',
'setuptools==45.2',
Expand Down
1 change: 1 addition & 0 deletions sklearn_pandas/dataframe_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def _unselected_columns(self, X):

def __setstate__(self, state):
# compatibility for older versions of sklearn-pandas
super().__setstate__(state)
self.features = [_build_feature(*feat) for feat in state['features']]
self.sparse = state.get('sparse', False)
self.default = state.get('default', False)
Expand Down