pycall.rb
pycall.rb copied to clipboard
scipy.stats.norm.pdf isn't usable from PyCall
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])
any update on this??
No, there isn't any updates. I’m sorry I cannot handle this right now. Any investigation results you may have are welcome.