Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy ndarray flatten Function Example

# welcome to softhunt.net
# Python program explaining
# numpy.ndarray.flatten() function

# importing numpy as np
import numpy as np


arr = np.array([[2, 3], [4, 5]])

softhunt = arr.flatten()

print( softhunt )
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #ndarray #flatten #Function #Example
ADD COMMENT
Topic
Name
1+3 =