pycall.rb icon indicating copy to clipboard operation
pycall.rb copied to clipboard

scipy.stats.norm.pdf isn't usable from PyCall

Open mrkn opened this issue 5 years ago • 2 comments

In ruby:

>> PyCall.import_module('scipy.stats').norm.pdf([1, 2, 3], 0, 10)
PyCall::PyError: <class 'TypeError'>: pdf() takes 2 positional arguments but 4 were given
from /Users/mrkn/src/github.com/mrkn/pycall.rb/lib/pycall/pyobject_wrapper.rb:43:in `pdf'

In python:

>>> import scipy.stats
>>> scipy.stats.norm.pdf([1, 2, 3], 0, 10)
array([0.03969525, 0.03910427, 0.03813878])

mrkn avatar Apr 26 '19 02:04 mrkn

any update on this??

zamananjum0 avatar Dec 28 '22 10:12 zamananjum0

No, there isn't any updates. I’m sorry I cannot handle this right now. Any investigation results you may have are welcome.

mrkn avatar Dec 28 '22 11:12 mrkn