Closed martinagvilas closed 4 years ago
Hello @martinagvilas
I have addressed the issues as follows.
Great catch! I have updated the docs to reflect Scipy's trim_mean
arguments exactly. Now proportiontocut
is indicated as the positional argument.
I have indicated in the documentation (and docstrings) where positional arguments are required (the docs should be live soon).
Thank you again, and feel free to reopen if anything is unclear.
This issue outlines some minor code issues in Hypothesize as part of the review for JOSS.
[x] There is an error with the
tr
keyword argument of thetrim_mean()
function when using it as described in the API documentation. For example, when runningtrim_mean(df, tr=.2)
I get:I believe this happens because Hypothesize is directly using the
trim_mean()
method from scipy whose keyword argument in this case isproportiontocut
and nottr
.[x] When using functions like
bootdpci
that take a list of positional arguments (*args
), those parameters documented before the*args
list cannot be passed as keyword arguments. In the case ofbootdpci
, for example,x
andest
cannot be passed as keyword arguments sincetr
cannot be passed as a keyword argument.If for both point 1) and 2) the intention is that users of Hypothesize only specify parameters using positional arguments, it would be useful to have this requirement explicit somewhere in the documentation.
Not necessarily for this review but for a later stage in the development of Hypothesize, it would be a nice addition to add tests that assert that keyword arguments are behaving as expected.