Fastai V1 and pandas 1.0.0: error in tabular.data.show_xys

Pandas 1.0.0 was recently released (end of Jan) and not surprisingly things that worked with pre 1.0.0 releases now fail.

tabular.data.show_xys() breaks when calling pd.option_context(‘display.max_colwidth’, -1). Replacing the -1 with None fixes the problem. This same problem probably occurs in other functions as well.

with pd.option_context(‘display.max_colwidth’, None):
display(HTML(df.to_html(index=False)))

I’ve fixed it everywhere I could find in v1, so this shouldn’t be a problem anymore.