I wrote a module that consists of a single function. I'd like to be able to use it something like how tqdm works:
>>> from tqdm import tqdm
>>> tqdm
<function tqdm.tqdm>
However I can't figure out how to set things up this way. Here's what I have:
>>> from missingno import missingno
>>> missingno
<module 'missingno.missingno' from '[...]'>
>>> missingno.missingno
<function missingno.missingno.missingno>
I'm sure this has been asked countless times before, but I'm unsure of how packaging works and can't find an answer to this particular riddle.
Here is the repository: https://github.com/ResidentMario/missingno.
After looking at pandas-profiling I've figured it out. Add the following line to __init__.py()
:
from .missingno import missingno
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With