Skip to content

Commit 4d7cf21

Browse files
committed
Apply PR practical-data-science#41: Replace deprecated sklearn with scikit-learn
- Changed setup.py: sklearn -> scikit-learn in install_requires - Changed requirements.txt: commented out sklearn~=0.0 - Updated requirements.txt: pandas~=1.2.4 -> pandas>=2.0.0 - Eliminates sklearn installation warnings - Adds pandas 2.x support - Reference: practical-data-science#41
1 parent 7b8d41f commit 4d7cf21

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
requests~=2.26.0
22
requests-html
33
gapandas
4-
sklearn~=0.0
4+
# sklearn~=0.0 # Deprecated - use scikit-learn instead
55
lifetimes~=0.11.3
66
transformers~=4.5.1
77
torch
88
pycausalimpact
9-
pandas~=1.2.4
9+
pandas>=2.0.0 # Updated for pandas 2.x compatibility
1010
causalimpact~=0.2.0
1111
bs4~=0.0.1
1212
beautifulsoup4~=4.9.3

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
],
3030
install_requires=['pandas',
3131
'gapandas',
32-
'sklearn',
32+
'scikit-learn',
3333
'requests',
3434
'requests_html',
3535
'httplib2 >= 0.15.0',

0 commit comments

Comments
 (0)