Answers for "NumPy resize Example"

0

NumPy resize Example

# welcome to softhunt.net
# importing the python module numpy
import numpy as np

# Making a random array
softhunt = np.array([0, 1, 3, 5, 7, 9, 11, 13, 15])

# Reshape the array permanently
softhunt.resize(3, 3)

print(softhunt)
Posted by: Guest on April-27-2022

Python Answers by Framework

Browse Popular Code Answers by Language