Skip to content

Commit

Permalink
fix #62
Browse files Browse the repository at this point in the history
  • Loading branch information
tompollard committed May 23, 2018
1 parent 1672811 commit 04c879c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tableone.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def __init__(self, data, columns=None, categorical=None, groupby=None,
raise InputError('Columns not found in dataset: {}'.format(notfound))

# check for duplicate columns
dups = data[columns].columns.get_duplicates()
if dups:
dups = data[columns].columns[data[columns].columns.duplicated()].unique()
if not dups.empty:
raise InputError('Input contains duplicate columns: {}'.format(dups))

# if categorical not specified, try to identify categorical
Expand Down

0 comments on commit 04c879c

Please sign in to comment.