Question:
I have a DataFrame and a list of borders:And when I tried it to do with just python list and functions, it worked:
Answer:
You can create an array out of yourborder_list
, then filter
it and select either minimum or maximum.If you have better answer, please add a comment about this, thank you!