Skip to content
Open
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 pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "tableone"
version = "0.9.5"
version = "0.9.6.dev1"
authors = [
{ name="Tom Pollard", email="tpollard@mit.edu" },
{ name="Alistair Johnson" },
Expand Down
4 changes: 2 additions & 2 deletions tableone/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def create_cont_table(self,
try:
table = table.join(nulltable)
# if columns form a CategoricalIndex, need to convert to string first
except TypeError:
except (pd.errors.InvalidIndexError, TypeError):
table.columns = table.columns.astype(str)
table = table.join(nulltable)

Expand Down Expand Up @@ -502,7 +502,7 @@ def create_cat_table(self,
try:
table = table.join(isnull)
# if columns form a CategoricalIndex, need to convert to string first
except TypeError:
except (pd.errors.InvalidIndexError, TypeError):
table.columns = table.columns.astype(str)
table = table.join(isnull)

Expand Down