I'm using min function to compare the following two lists element wise to get the min value of each pair:
a = [1915.2322937926342, 2986.621770760078]
b = [2563.0, -4320.21030101545]
min(a,b)
Out[123]: [1915.2322937926342, 2986.621770760078]
I'm expecting the output to be:
[1915.2322937926342, -4320.21030101545]
I tried a simple example to make sure the max function work:
a = [1, 3]
b = [2, -1000]
min(a, b) = [1, -1000]
Can anyone please tell me why the min function did not work for my first example? Thanks a lot!