I have a DataFrame whose rows are arrays of numbers of some given length. I want to effectively get rid of those rows that differ by the sign of -1 from other rows. For example, if I encounter
1 -2 2 4 -4
-1 2 -2 -4 4
then I want to drop one of them. Is there a not overly expensive way of doing that in Python/Pandas?
An example of such a DataFrame to be found here.