Answers for "Python NumPy ndarray flatten Function Example"

0

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 )
Posted by: Guest on April-21-2022

Python Answers by Framework

Browse Popular Code Answers by Language