# Tag Archives: Pyhton numpy-arrayCreation

## How to build an array of all combinations of two NumPy arrays?

Sometimes we need to find the combination of elements of two or more arrays. Numpy has a function to compute the combination of 2 or… Read More »

## How to create a NumPy 1D-array with equally spaced numbers in an interval?

At times, we need to make arrays of different types like in AP(equally spaced series of numbers), GP(exponentially spaced series of numbers) or HP(reciprocally spaced… Read More »

## How to Copy NumPy array into another array?

Many times there is a need to copy one array to another. Numpy provides the facility to copy array using different methods. There are 3… Read More »

## Creating a one-dimensional NumPy array

One dimensional array contains elements only in one dimension. In other words, the shape of the NumPy array should contain only one value in the… Read More »

## Different ways to convert a Python dictionary to a NumPy array

In this article, we will see Different ways to convert a python dictionary into a Numpy array using NumPy library. It’s sometimes required to convert a… Read More »

## NumPy Array Shape

The shape of an array can be defined as the number of elements in each dimension. Dimension is the number of indices or subscripts, that… Read More »

## How to convert a list and tuple into NumPy arrays?

In this article, let’s discuss how to convert a list and tuple into arrays using NumPy. NumPy provides various methods to do the same. Let’s… Read More »

## NumPy array in Python

Python lists are a substitute for arrays, but they fail to deliver the performance required while computing large sets of numerical data. To address this… Read More »

## Convert Python List to numpy Arrays

A list in Python is a linear data structure that can hold heterogeneous elements they do not require to be declared and are flexible to… Read More »

## Numpy MaskedArray.argsort() function | Python

In many circumstances, datasets can be incomplete or tainted by the presence of invalid data. For example, a sensor may have failed to record a… Read More »

numpy.load() in Python is used load data from a text file, with aim to be a fast reader for simple text files. Note that each… Read More »

## numpy.geomspace() in Python

numpy.geomspace() is used to return numbers spaced evenly on a log scale (a geometric progression). This is similar to numpy.logspace() but with endpoints specified directly.… Read More »

## numpy.ascontiguousarray() in Python

numpy.ascontiguousarray()function is used when we want to return a contiguous array in memory (C order). Syntax : numpy.ascontiguousarray(arr, dtype=None) Parameters : arr : [array_like] Input… Read More »

## numpy.asanyarray() in Python

numpy.asanyarray()function is used when we want to convert input to an array but it pass ndarray subclasses through. Input can be scalars, lists, lists of… Read More »

## numpy.asarray() in Python

numpy.asarray()function is used when we want to convert input to an array. Input can be lists, lists of tuples, tuples, tuples of tuples, tuples of… Read More »