pyjanitor-devs / pyjanitor

Clean APIs for data cleaning. Python implementation of R package Janitor
https://pyjanitor-devs.github.io/pyjanitor
MIT License
1.36k stars 170 forks source link

DeprecationWarning #1255

Open samukweku opened 1 year ago

samukweku commented 1 year ago

Brief Description

Not sure how to diagnose this; it currently happens in the dev branch when janitor is imported. On python 3.9 this warning does not appear

System Information

Minimally Reproducible Code

import janitor as jn

Error Messages

/home/sam/miniforge3/envs/playground/lib/python3.10/site-packages/prompt_toolkit/application/application.py:955: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
samukweku commented 1 year ago

The issue is related to the prompt-toolkit application, with suggestions on a workaround here.

Thinking out aloud here, should we drop this dependency?