tompollard / tableone

Create "Table 1" for research papers in Python
https://pypi.python.org/pypi/tableone/
MIT License
161 stars 38 forks source link

making column checking robust to passing pandas index #61

Open alistairewj opened 6 years ago

alistairewj commented 6 years ago

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.