Most voted "scipy" questions
Scipy is an open source library with algorithms and mathematical tools for the Python programming language.
Learn more…16 questions
Sort by count of
-
6
votes1
answer2529
viewsDoubts about using Stratified K-Fold in Scikit Learn
I want to perform a cross-validation using 10 folds stratified, using the language Python and the library Scikit Learn (Sklearn). Looking for some tutorials on the internet, I did some testing and…
-
2
votes1
answer449
viewsBuild of Sublime Text 2 gives different result than ipython on the command line
I’m trying to migrate to Sublime Text 2 and do everything without leaving the program. Before I ran a script with the following line: from scipy.stats import beta, bernoulli, gaussian_kde In the…
-
2
votes1
answer959
viewsPython Interpolate Txt
Good night, I recently started the program in python because of an elective I have at university, but my knowledge is still minimal. My teacher gave a job to do where I should create a code that…
-
2
votes1
answer119
viewsDifference between maxiter and maxfun parameters in function fmin_l_bfgs_b
In the help of function: maxfun : int Maximum number of function evaluations. maxiter : int Maximum number of iterations. But what is the maximum number of iterations and the number of function…
-
2
votes1
answer1639
viewsHow to use the statistical distributions of scipy and matplot via array
Hello, I need to plot graphs of some statistical distributions using python3, so I checked in the scipy documentation, from there, after making some changes to my needs, I got the following code to…
-
2
votes1
answer519
viewsProblem to install Scipy
People I’m having trouble installing the scipy for pycharm and by Pip, I am taking the following considerations when installing the SciPy 1 - Is compatible with python 3.6 2 - On Pip type the…
-
2
votes1
answer217
viewsCalculating numerical integrals from numpy arrays
I have the triple integral of the figure. I used the documentation of the scipy to solve her. Now I want to exchange the values of the upper limits of x, y and z, which in this problem are the…
-
2
votes2
answers41
viewsHow to get the X coordinate if the Y condition is met with Numpy?
I created a function that gives me this array as output in which each line corresponds to a point : array([[0.57946528, 2. ], [0.35226154, 0. ], [0.26088698, 0. ], [0.56560726, 1. ], [0.41680759, 1.…
-
2
votes1
answer76
viewsHow do I perform a normalization of curves in python?
Good afternoon everyone, I am doing an exploratory analysis of data in Python using the classic DF kc_house_data, and I came across the following problem. I would like to make some comparisons to…
-
1
votes1
answer84
viewsAttribute Error: scipy has no attribute 'Stats'
I am getting this error while trying to import the Pyfolio library, I tried to import first: import scipy.stats or from scipy import stats and I was not successful. I can import scipy but when…
-
0
votes3
answers2326
viewsHow to install the scipy library in python?
I tried to install using Winpython program, but while importing the library an error occurred: ">>> from scipy.optimize import curve_fit Traceback (Most recent call last): File "", line 1,…
-
0
votes1
answer676
viewsObtaining numerical values of mathematical graphs with python
Assuming you have a data file that allows you to plot a 2d graph (straight, parabola, conical), is it possible, starting from the image of the graph, to extract the numerical values that generated…
-
0
votes0
answers734
viewsHow can I plot a spectrogram in real time by reading data from an ADC such as the "MCP3008" connected to the Raspberry GPIO?
My idea will be to read data from an ADC such as the MCP3008 connected to Rasperry’s GPIO, from the readings plot a real-time graphics of the signal processed by a FFT(fast Fourrier transform) or…
-
0
votes1
answer454
viewsInsert values to a 3D numpy array
Hello. I created the following array numpy as below: import numpy as np x = [350, 500, 800, 900, 1000] y = [1100, 900, 1250, 650, 1200] z = [50, 150, 300, 200, 500] arr_2d = np.array(list(zip(x,…
-
0
votes1
answer126
viewscurve_fit: can’t Multiply Sequence by non-int of type 'numpy.float64'
I’m having trouble with the curve_fit of the scipy, the error that comes out tells me that it can’t multiply sequence by float, I’m trying to create a sequence based on the function I defined and…
-
0
votes0
answers47
viewspython probability density function
I can’t create a continuous probability density function for a random variable to plot it over the histogram. val = df[['posição', 'num']].groupby('num').agg(lambda x: list(set(x))).reset_index()…