Code in Python
Machine Learning and Deep Learning Blogs
search

Tag: NumPy

NumPy Array Indexing and Slicing

Numpy offers several ways to index into arrays. As mentioned earlier, items in numpy array object follow zero-based index. The three types of indexing methods that are followed in numpy  − field access, basic slicing, and advanced indexing. Here are the 3 topics we will look into in this article: 1)    Slicing 2)    Integer array […]

Learn more about NumPy Array and its operations

NumPy Array Creation Numpy provides many functions to create arrays. For Example: a = np.array([1, 2, 3, 4, 5, 6, 7]) Note that the np.array() takes only one input parameter, that is a list of elements. If you want to create a multi-dimensional array, then pass tuples of numbers on the list. For example: b […]

Learn more about NumPy, NdArrays and its attributes

Numpy is a python library to create homogeneous multidimensional arrays and provide tools for working with these arrays. The elements of numpy array are of the same type. One can create an array in Python using lists or array() function. The advantage of using Numpy array is it scales better and takes less memory when […]

© 2018 Code in Python