Tag: ravel()
Python Numpy: flatten() vs ravel()
In this article we will discuss main differences between numpy.ravel() and ndarray.flatten() functions. Objective of both the numpy.ravel() and ndarray.flatten() functions is the same i.e. flatten a numpy array of any shape. But there are some basic differences in both of them. Before going into detail about differences, let’s have a basic overview of both …