tableone icon indicating copy to clipboard operation
tableone copied to clipboard

making column checking robust to passing pandas index

Open alistairewj opened this issue 6 years ago • 0 comments

Quick fix - passing an index object to columns causes an error (e.g. t1 = tableone(df, columns=df.columns)). Added a check if it's a pandas index data type since it's probably very common to pass it.

alistairewj avatar Apr 20 '18 13:04 alistairewj