Let’s learn how to cast an array from one dtype to another using the Numpy astype function.
numpy
Enter here to see how can you do with Numpy! More than 100 tricks for you!
How to Generate Sequence Arrays in Python with Numpy arange
Let’s see how to generate sequence array using Numpy arange function in Python.
Ways how to convert numpy array to string
Let’s look at a few ways to convert a numpy array to a string. We will see how to do it in both Numpy and Python-specific ways.
How to reverse array in Numpy?
Let’s learn how to reverse an array in the Numpy Python library. We will check a few methods and tricks.
How to convert Numpy array to Python list?
Let’s check how to convert Numpy array to Python list.
How to create empty array in Numpy?
Let’s see how to create empty array in Numpy Python module.
How to reshape array in Numpy?
Let’s see how to use numpy reshape method to reshape an array in Numpy Python module.
How to calculate square root in Numpy?
NumPy provides a convenient way to perform an array-wise square root calculation through its sqrt function. Let’s see how to calculate square root in Numpy Python module.
How to calculate standard deviation in Numpy?
Let’s see how to calculate standard deviation in Numpy Python module.
How to calculate variance in Numpy?
Let’s see how to calculate variance in Numpy python module.
How to calculate mode in Python?
Let’s see how to calculate mode in Python.
How to calculate geometric mean in Python?
Let’s see how to calculate the geometric mean in Python. The geometric mean is a measure of central tendency that is useful for dealing with data that has a wide range of values and is often used in finance, biology, and other fields.
Python code to draw cos(x) using matplotlib
Let’s draw again. This time we will use a matplotlib and numpy to get python cos(x) graph.