I have a list of lists: E [] [], where E has ten subscriptions, each of which has about 500 entries.
My main task is to calculate the maximum of all 5000 values that are distributed in ten signatures.
Now I wrote the following:
MinVal = min(min(E[i]) for i in range(len(E)))
and he gave me this error: ValueError: min () arg is an empty sequence
Now I wrote this:
min_arr = []
for i in range(len(E)):
min_arr.append(min(E[i]))
MinVal = min(min_arr)
and it gives me the same error: ValueError: min () arg is an empty sequence
So, I just try to do this:
print(max(E[1]))
and he gives me an answer
The first two codes also work for small lists of items 5-10 . But it shows a problem with large data sets.
What should I do?