filmov
tv
Python Numpy Tutorial

Показать описание
In this video, we have explained python Numpy that what python Numpy is actually and how we can use it. NumPy is python library which stands for ‘Numerical Python”. It is consist of multidimensional array objects and a collection of functions for processing of array. It is the core library used in scientific computing, with functions present to perform linear algebraic operations and statistical operations. We have explained the key features of Numpy and installation guide for linux. Moreover, we have demonstrated the use of Numpy library with examples.
Commands used in this video for installing Numpy
Installing Numpy by using pip
pip install numpy
Installing Numpy by using conda
conda install -c anaconda numpy
Following is the code that is used in this video for demonstration
# simple array
print(a)
# Creating multidimensional array
print(md_array)
# To find the dimension of array
# To find data type of array’s items
# Mathematical operations
# Creating list and converting them to Numpy array
height = [2.1, 2.7, 1.2, 1.5]
weight = [70,60,80,90]
# Reshaping the array
print(original)
print(reshaped)
# Linear algebraic functions
# print rank of matrix
# print trace of matrix
# print determinant of a matrix
# print inverse of matrix
# print transpose of matrix
Commands used in this video for installing Numpy
Installing Numpy by using pip
pip install numpy
Installing Numpy by using conda
conda install -c anaconda numpy
Following is the code that is used in this video for demonstration
# simple array
print(a)
# Creating multidimensional array
print(md_array)
# To find the dimension of array
# To find data type of array’s items
# Mathematical operations
# Creating list and converting them to Numpy array
height = [2.1, 2.7, 1.2, 1.5]
weight = [70,60,80,90]
# Reshaping the array
print(original)
print(reshaped)
# Linear algebraic functions
# print rank of matrix
# print trace of matrix
# print determinant of a matrix
# print inverse of matrix
# print transpose of matrix