kootenpv / cliche

Build a simple command-line interface from your functions :computer:
MIT License
107 stars 9 forks source link

Pandas 1.4.2 throws a FutureWarning which is triggered by cliche #13

Closed ig0rsky closed 2 years ago

ig0rsky commented 2 years ago

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)
`