Top "Numpy" questions

NumPy is an extension of the Python language that adds support to large multidimensional arrays and matrixes, along with a large library of high-level mathematical functions for operations with these arrays.

Numpy where function multiple conditions

I have an array of distances called dists. I want to select dists which are between two values. I wrote …

python numpy
How do you do natural logs (e.g. "ln()") with numpy in Python?

Using numpy, how can I do the following: ln(x) Is it equivalent to: np.log(x) I apologise for …

python numpy logarithm natural-logarithm
Take multiple lists into dataframe

How do I take multiple lists and put them as different columns in a python dataframe? I tried this solution …

python numpy pandas
How to save a list as numpy array in python?

Is possible to construct a NumPy array from a python list?

python list numpy
How to write a multidimensional array to a text file?

In another question, other users offered some help if I could supply the array I was having trouble with. However, …

python file-io numpy
How to smooth a curve in the right way?

Lets assume we have a dataset which might be given approximately by import numpy as np x = np.linspace(0,2*np.…

python numpy scipy signal-processing smoothing
Index of element in NumPy array

In Python we can get the index of a value in an array by using .index(). But with a NumPy …

python arrays numpy indexing indexof
How to do exponential and logarithmic curve fitting in Python? I found only polynomial fitting

I have a set of data and I want to compare which line describes it best (polynomials of different orders, …

python numpy scipy curve-fitting linear-regression
NumPy array is not JSON serializable

After creating a NumPy array, and saving it as a Django context variable, I receive the following error when loading …

python json django numpy
What does axis in pandas mean?

Here is my code to generate a dataframe: import pandas as pd import numpy as np dff = pd.DataFrame(np.…

python pandas numpy dataframe