Questions tagged as 'numpy'

0
answers

Point adjustments for curves in python

I'm using the numpy release, in particular polyfit (np.polyfit) to find a polynomial curve of degree 1,2,3, ... etc to adjust a set of points (x,y) , I get the coefficients of such polynomials, however , I would like to see if there...
asked by 03.06.2018 / 07:47
0
answers

Help with audio graphic display in python

Hi, I have the following code to generate a graphic audio visualizer but after a modification I made it I could not make it work anymore. And two proclems with the code are presented to me. 1.-I get an error that I do not know how to solve...
asked by 26.03.2018 / 04:02
0
answers

Python 3: import dll with ctypes or numpy.ctypeslib

I want to work with the Autodesk Robot Structural Analysis API to extract information. With IronPython I import the references from a library dll in the following way: import clr clr.AddReferenceToFileAndPath(‘midirectorio\Intero...
asked by 13.02.2018 / 12:13
0
answers

"No module named numpy" and "numpy.core.multiarray failed to import"

I already installed numpy on my pc, but in the choregraphe I'm programming nao, and I get the errors "numpy.core.multiarray failed to import" and "No module named numpy" as I solve those errors,     
asked by 11.01.2018 / 03:15
1
answer

TypeError: 'numpy.float64' object can not be interpreted as an integer

I try to perform an arithmetic operation using values obtained from a DataFrame using statements df.loc[] . The sentence beneficio = (cotz_fin - cotz_ini) * opcion produces the error:    "TypeError: 'numpy.float64' object can not...
asked by 13.11.2017 / 14:50
0
answers

Python parser error with expressions evaluator

Hello, I have been implementing several numerical methods in python for a long time, in this case I am implementing the bisection method and it works perfectly but the problem is in the expression evaluator that is giving me an error that I do n...
asked by 21.03.2017 / 15:55
1
answer

TypeError: only length-1 arrays can be converted to Python scalars

import matplotlib.pyplot as plt import numpy as np from py_expression_eval import * def f(exp, var, x0): p = Parser() result = p.parse(exp).evaluate({var:x0}) return result a = 0 b = 4 error = 10 i = 0 while(error>1e-8 and i!=100)...
asked by 02.03.2017 / 11:23
1
answer

How do I add the components of each row of a matrix with numpy?

Good, I have to do a matrix problem with the numpy but I can not find a way to fix it. I would appreciate your help. The problem is this: Program a function sum_fila (mat) that given a numpy array of rank 2 mat (a matrix) return a numpy array...
asked by 23.12.2016 / 01:20
1
answer

how to correct error in sitanxis with column name in dataframe?

I am executing this code to delete some records of a dataframe, but in line 16 (move_id / id) it is the name of the column and / separates the name of the column which is not ideal. the error response is "move_id" does not exist and it is true x...
asked by 21.09.2018 / 19:08
1
answer

Mobile Averages in Python

I would like to know if there is a specific function in Python for calculating moving averages. In MATLAB there is one called "tsmovavg" that has an algorithm called "Financial Time Series". Will the same algorithm exist in Python?     
asked by 23.05.2018 / 18:10