Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy dsplit Function

# welcome to softhunt.net
import numpy as np


# Making of a 3x3x3 array.
b = np.arange(27).reshape(3, 3, 3)

# Depth-wise splitting of array
# 'b' using np.dsplit().
print("The array :
 {} 

 gets splitted depth-wise to form: 

 {}".format(b, np.dsplit(b, 3)))
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #dsplit #Function
ADD COMMENT
Topic
Name
3+6 =