Question:
Do you know if it was possible to return 2 values in 2 columns with one def?I have this two def:
Answer:
For performance more better to avoid the apply method (which is called for every row), and use boolean indexing instead:If you have better answer, please add a comment about this, thank you!