what is the method to convert an array of arbitrary shape to a 1D array in python? I'm looking for something like this
my_array = numpy.array( [4,[5,6],[7,8,9]] )
my_array_flattened = [4,5,6,7,8,9]
numpy.flatten('F')
is not working
what is the method to convert an array of arbitrary shape to a 1D array in python? I'm looking for something like this
my_array = numpy.array( [4,[5,6],[7,8,9]] )
my_array_flattened = [4,5,6,7,8,9]
numpy.flatten('F')
is not working