I am working with a function which outputs a numpy array around 600 elements long.
array = function_output()
array.shape # this outputs (600,)
I have to work with around 50 outputs this function. Each output is distinct. The goal is to concatenate each of these arrays together into a list (or numpy array) and then save the results.
I foolishly began labeling each array individually, i.e.
array1 = function_output()
array2 = function_output()
...
and I then thought I could concatenate this into a list, i.e.
list = [array1, array2, array3, ..., array50]
(1) I don't think there's any way around by naming scheme at first. Each output of the function is unique and should be labeled appropriately
(2) however, it feels foolish to define a list this way, copying and pasting. Could I somehow use a 'for' statement to iterate over variable names?