# ev-br

 20h comment "only length-1 arrays can be converted to Python scalars" using scipy.optimize in SageWhat is `numerical_integral` and what does it return. 20h revised Vectorize repetitive math function in Pythondeleted 44 characters in body 21h answered Vectorize repetitive math function in Python 1d awarded python 2d comment Solving multiple argument equations, choosing the dependent variable. [Python, Scipy]Are you looking for an analytical or numerical solution? In the latter case, you can use scipy solvers with a lambda to forward/reorder arguments as needed. 2d comment How do I calculate linear trend for a multi-dimensional array in PythonHere's the source of `scipy.signal.detrend`: github.com/scipy/scipy/blob/v0.16.1/scipy/signal/… Feb 9 comment random.sample in Python 3 (jupyter notebook)There is no reason to do `import scipy as sp` even. Do `from scipy import subpackage or `from scipy.subpackage import something`. Feb 9 answered SciPy fails to install via pip Feb 7 comment How to get the spline basis used by scipy.interpolate.splev(+1) This is likely the way to go, at least as long as github.com/scipy/scipy/pull/3174 is not merged. Feb 6 comment How to get the spline basis used by scipy.interpolate.splevWhat exactly do you mean by "per sample basis used splev when evaluating a spline"? You figured how to give splev knots and coefficients, what exactly are you looking for? Feb 5 answered Scipy.optimize.newton: RunTimeError Feb 3 comment Multiple integrations of a data-function over a small portion of its domain - accuracy and efficiency(+1) Style nitpick: you almost never want `import scipy as sp`. Better import `interp`, `linspace` et al from `numpy` directly. Feb 2 comment Fortran version of python loop giving incorrect answerHowever nice is Fortran for this sort of thing, at this level of complexity you're really better off just writing the code in cython using typed memoryviews. Feb 2 comment pandas interpolation : use np.interp with changing valuesNow that you're changing the question, I lose interest in cooking up a detailed reply, but basically: write yourself a solution using a for loop over the rows of your dataframe, then drop it to cython and you're all set. Feb 2 answered how to calculate probability mass function for multinomial in scipy? Feb 2 comment pandas interpolation : use np.interp with changing valuesif you only need linear interpolation, `numpy.interp` might be saner. Feb 1 revised How to install scipy and numpy packages for python 3.4 on ubuntu 12.04?added 546 characters in body Feb 1 answered How to install scipy and numpy packages for python 3.4 on ubuntu 12.04? Jan 22 comment How to vectorize Fisher's exact test?Seems to be pure python: github.com/scipy/scipy/blob/master/scipy/stats/stats.py Jan 13 comment Preventing scipy eigenvectors differing from computer to computerAll caps are not helpful, you know :-). What I'm asking is whether you checked that you're not getting different linear combinations of eigenvectors for degenerate eigenvalues.