I am using numpy to build complex excel IF formula with the first condition being as follows:
DebitCond1 = np.where(np.logical_and(df['Debit']<0, df['Credit']<0, df['Debit']<df['Credit']))
Python crashes each time I run this (tried on multiple machines). Having two of the conditions are fine, but it's the combination of the three conditions together that seems to be at issue.
The error message is as follows:
Python has stopped working
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
Any thoughts on the cause and how to fix? Thanks!