I like the statsmodels spelling better: missing : str; Available options
are ‘none’, ‘drop’, and ‘raise’

But this is bikeshed painting if the options exist.

However, I WOULD urge the argument to take EITHER a string OR an enum.  I
don't think any other libraries mentioned do that, but it would just seem
friendly.  The names in the enum, of course, should match the string names
(other than casing perhaps).

On Sat, Aug 28, 2021 at 1:16 AM Christopher Barker <python...@gmail.com>
wrote:

>
> SciPy should probably also be a data-point, it uses:
>>
>>     nan_policy : {'propagate', 'raise', 'omit'}, optional
>
>
> +1
>
> Also +1 on a string flag, rather than an Enum.
>
> -CHB
> --
> Christopher Barker, PhD (Chris)
>
> Python Language Consulting
>   - Teaching
>   - Scientific Software Development
>   - Desktop GUI and Web Development
>   - wxPython, numpy, scipy, Cython
> _______________________________________________
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/D4GVO4C64N6BT64FL7XE5SCBJNEO4SI3/
> Code of Conduct: http://python.org/psf/codeofconduct/
>


-- 
Keeping medicines from the bloodstreams of the sick; food
from the bellies of the hungry; books from the hands of the
uneducated; technology from the underdeveloped; and putting
advocates of freedom in prisons.  Intellectual property is
to the 21st century what the slave trade was to the 16th.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/4TAGFWWCRIXREWDJQFIMUHVDGMH23BBT/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to