Skip to content

Commit

Permalink
explicit sort behavious
Browse files Browse the repository at this point in the history
  • Loading branch information
tompollard committed May 23, 2018
1 parent 04c879c commit d9ab6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tableone.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def _create_tableone(self,data):
n_row = pd.DataFrame(columns = ['variable','level','isnull'])
n_row.set_index(['variable','level'], inplace=True)
n_row.loc['n', ''] = None
table = pd.concat([n_row,table])
table = pd.concat([n_row,table],sort=False)

if self._groupbylvls == ['overall']:
table.loc['n','overall'] = len(data.index)
Expand Down

0 comments on commit d9ab6b3

Please sign in to comment.