mwouts / itables

Pandas DataFrames as Interactive DataTables
https://mwouts.github.io/itables/
MIT License
757 stars 56 forks source link

Using pandas `display.max_columns` breaks itables #14

Closed artdgn closed 3 years ago

artdgn commented 3 years ago

When pandas option display.max_columns is set to None, trying to use show() results in:

TypeError: '>' not supported between instances of 'int' and 'NoneType'

It seems to be because of this line and then later using that None in this line.

I'd submit a PR, but it doesn't look like this package is actively maintained. Otherwise it's a simple change of setting the default unless it's None.

Workaround:

Pass maxColumns explicitly to show()

mwouts commented 3 years ago

Hi @artdgn , thank you for reporting this. Indeed it has been a long time since we made the last release. But I'll be happy to make a new one ! So please proceed if you wish to make a PR.