Closed paul-hawkins closed 4 years ago
Hi Paul,
Thanks for the report and for using the library!
A couple things that might help.
trim_mean
has to be imported first.est
is a actually a positional argument. This is stated in the docs for bootdpci
, but perhaps it could be made more clear:Note that arguments up to and including args are positional arguments
If you import trim_mean
and specify it as positional, it should work. Example:
from hypothesize.utilities import trim_mean
results=bootdpci(df, trim_mean, .2)
Also, in the docs there is a button you can click that allows you to see an example of every function being run. Example:
This can be a helpful way of seeing how the functions can be run and playing around with them straight away. Everything seems to work as expected in that context.
Does this help?
@paul-hawkins Closing but feel free to reopen if you feel I've not addressed this issue.
On Python 3.7 on Windows 10 (Anaconda/Jupyter notebook)
for
compare_groups_with_single_factor.bootdpci
the only arugment to theest
function allowable istrim_mean
:https://alcampopiano.github.io/hypothesize/function_guide/#bootdpci
However on
NameError: name 'trim_mean' is not defined
If other estimators, such as
numpy.mean
, are usedthe following error is thrown: