Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

NumPy resize Example out of bound values [appending zeros]

# 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(4, 4)

print(softhunt)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #NumPy #resize #Example #bound #values
ADD COMMENT
Topic
Name
7+4 =