I ran a command in python pandas as follows:
q1_fisher_r[(q1_fisher_r['TP53']==1) & q1_fisher_r[(q1_fisher_r['TumorST'].str.contains(':1:'))]]
I got following error:
TypeError: Cannot perform 'rand_' with a dtyped [float64] array and scalar of type [bool]
the solution i tried using this: error link.
changed the code accordingly as:
q1_fisher_r[(q1_fisher_r['TumorST'].str.contains(':1:')) & (q1_fisher_r[(q1_fisher_r['TP53']==1)])]
But still I got the same error as TypeError: Cannot perform 'rand_' with a dtyped [float64] array and scalar of type [bool]