Skip to content

Commit

Permalink
Merge pull request #145 from tompollard/tp/bump_pandas_2_0_0
Browse files Browse the repository at this point in the history
Support pandas v2.0.0
  • Loading branch information
tompollard committed Apr 24, 2023
2 parents c8f2662 + 1c0bdb7 commit e6b449b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
# built documents.
#
# The short X.Y version.
version = u'0.7.12'
version = u'0.8.0'
# The full version, including alpha/beta/rc tags.
release = u'0.7.12'
release = u'0.8.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tabulate==0.8.10
pandas==1.4.3
pandas==2.0.0
numpy==1.23.2
scipy==1.9.0
statsmodels==0.13.2
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='0.7.12',
version='0.8.0',

description='TableOne',
long_description=long_description,
Expand Down Expand Up @@ -52,10 +52,11 @@
# https://packaging.python.org/en/latest/requirements.html
install_requires=[
'numpy>=1.19.1',
'pandas>=1.2.1',
'pandas>=1.4.3',
'scipy>=1.7.0',
'statsmodels>=0.12.1',
'tabulate>=0.8.10'
'tabulate>=0.8.10',
'Jinja2==3.1.2'
],

# List additional groups of dependencies here (e.g. development
Expand Down
2 changes: 1 addition & 1 deletion tableone/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .tableone import TableOne, load_dataset, tableone

__author__ = "Tom Pollard <tpollard@mit.edu>, Alistair Johnson, Jesse Raffa"
__version__ = "0.7.12"
__version__ = "0.8.0"
2 changes: 1 addition & 1 deletion tableone/tableone.py
Original file line number Diff line number Diff line change
Expand Up @@ -1455,8 +1455,8 @@ def _create_tableone(self, data):
# set the limit on the number of categorical variables
if self._limit:
levelcounts = data[self._categorical].nunique()
for k, _ in levelcounts.iteritems():

for k, _ in levelcounts.items():
# set the limit for the variable
if (isinstance(self._limit, int)
and levelcounts[k] >= self._limit):
Expand Down

0 comments on commit e6b449b

Please sign in to comment.