Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy asscalar Function Example 01

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

import numpy as np
# creating a array of size 1
in_arr = np.array([ 5 ])

print ("Input array : ", in_arr)

	
out_scalar = np.asscalar(in_arr)
print ("output scalar from input array : ", out_scalar)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #asscalar #Function #Example
ADD COMMENT
Topic
Name
6+8 =