pandera icon indicating copy to clipboard operation
pandera copied to clipboard

Adding soft-dependency exceptions

Open aiwalter opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. I would recommend to introduce soft-dependency machanism that gives the user a proper exception and hinting to that multiple install options. Currently there is no custom exception message or anything that tells the user to e.g. do pip install pandera[io] if he want to use particular functionality of pandera.

Describe the solution you'd like How to do that, you can look into: https://github.com/alan-turing-institute/sktime/blob/24f6be86f95bfc1ec246dee7dcdd455e0a84a872/sktime/utils/validation/_dependencies.py#L5

This is then called in the particualar files that require additional packages that are not contained in the default installation.

Additional context UX

aiwalter avatar Mar 03 '22 12:03 aiwalter

thanks @aiwalter ! adding the help wanted tag here

cosmicBboy avatar Mar 26 '22 15:03 cosmicBboy