kootenpv/cliche

Pandas 1.4.2 throws a FutureWarning which is triggered by cliche

Closed this issue · 0 comments

Original error:

/usr/local/Caskroom/mambaforge/base/envs/mgnr/lib/python3.10/site-packages/cliche/__init__.py:169: FutureWarning: pandas.UInt64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.
  fn.lookup[(x, y)] = getattr(sub_module, y)

fixed it with:

 # Ignore the warning from pandas
 # FutureWarning: pandas.UInt64Index is deprecated and will be removed from pandas in a future version.
 # Use pandas.Index with the appropriate dtype instead.
 import warnings
 warnings.simplefilter(action='ignore', category=FutureWarning)
`