Skip to content

Commit

Permalink
Newest version of pandas is supported again.
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed May 22, 2024
1 parent f5febaf commit 77c91e3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions bnlearn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

__author__ = 'Erdogan Tasksen'
__email__ = 'erdogant@gmail.com'
__version__ = '0.8.7'
__version__ = '0.8.8'

import pgmpy
# Check version pgmpy
Expand All @@ -58,9 +58,9 @@
if version.parse(np.__version__) < version.parse("1.24.1"):
raise ImportError('[bnlearn] >Error: numpy version should be > 1.24.1\nTry to: pip install -U numpy')

import pandas as pd
if version.parse(pd.__version__) > version.parse("1.5.3"):
raise ImportError('[bnlearn] >Error: pands version should be <= 1.5.3')
# import pandas as pd
# if version.parse(pd.__version__) > version.parse("1.5.3"):
# raise ImportError('[bnlearn] >Error: pands version should be <= 1.5.3')

# This one is moved towards the interactive plot function because it is not required in the setup.
# import d3blocks as d3
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sphinx_rtd_theme
rst2pdf
spyder-kernels==2.2.*
# spyder-kernels==2.2.*
sphinx
pytest
#git://github.com/SuperKogito/sphinxcontrib-pdfembed
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ pgmpy>='0.1.18'
networkx>='2.7.1'
matplotlib>='3.3.4'
numpy>='1.24.1'
pandas==1.5.3
#pandas==1.5.3
pandas
#d3blocks>='1.4.9'
tqdm
ismember
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"networkx>=2.7.1",
"matplotlib>=3.3.4",
"numpy>=1.24.1",
'pandas==1.5.3',
'pandas',
'tqdm',
'ismember',
'scikit-learn',
Expand Down

0 comments on commit 77c91e3

Please sign in to comment.