xor of two SArray

User 2568 | 6/14/2016, 11:20:18 PM

I wanted to check the consistency of of the columns in an SFrame. I have a membership END_DATE and a MEMBERSHIP STATUS of Active/Inactive. I wanted to be able to write the following

data['END_DATE'] < TODAY ^ data['MEMBERSHIP STATUS'] == 'Inactive'

however bitwise xor is not supported for two SArrays. In the end I wrote

(data['END_DATE'] < TODAY) - (data['MEMBERSHIP STATUS'] == 'Inactive') != 0

which works but is cumbersome

Comments

User 940 | 6/20/2016, 6:34:54 PM

Hi @Kevin_McIsaac ,

Thanks for the pointer. I'll go ahead and file a feature request.

Cheers! -Piotr