Top "Scipy" questions

SciPy is an open source library of algorithms and mathematical tools for the Python programming language.

How to make scipy.interpolate give an extrapolated result beyond the input range?

I'm trying to port a program which uses a hand-rolled interpolator (developed by a mathematician colleage) over to use the …

python math numpy scipy
How to solve a pair of nonlinear equations using Python?

What's the (best) way to solve a pair of non linear equations using Python. (Numpy, Scipy or Sympy) eg: x+…

python numpy scipy sympy
Computing cross-correlation function?

In R, I am using ccf or acf to compute the pair-wise cross-correlation function so that I can find out …

python r statistics numpy scipy
How do I plot list of tuples in Python?

I have the following data set. I would like to use Python or Gnuplot to plot the data. The tuples …

python numpy matplotlib scipy gnuplot
T-test in Pandas

If I want to calculate the mean of two categories in Pandas, I can do it like this: data = {'Category': […

python pandas scipy statistics hypothesis-test
Principal component analysis in Python

I'd like to use principal component analysis (PCA) for dimensionality reduction. Does numpy or scipy already have it, or do …

python numpy scipy pca
Numpy: Divide each row by a vector element

Suppose I have a numpy array: data = np.array([[1,1,1],[2,2,2],[3,3,3]]) and I have a corresponding "vector:" vector = np.array([1,2,3]) How do …

python arrays numpy scipy
Resampling a numpy array representing an image

I am looking for how to resample a numpy array representing image data at a new size, preferably having a …

python image-processing numpy scipy python-imaging-library
Generating a dense matrix from a sparse matrix in numpy python

I have a Sqlite database that contains following type of schema: termcount(doc_num, term , count) This table contains terms …

python arrays numpy scipy sparse-matrix
How to access sparse matrix elements?

type(A) <class 'scipy.sparse.csc.csc_matrix'> A.shape (8529, 60877) print A[0,:] (0, 25) 1.0 (0, 7422) 1.0 (0, 26062) 1.0 (0, 31804) 1.0 (0, 41602) 1.0 (0, 43791) 1.0 print A[1,:] (0, 7044) 1.0 (0, 31418) 1.0 (0, 42341) 1.0 (0, 47125) 1.0 (0, 54376) 1.0 print A[:,0] #nothing returned …

python scipy