One .ro
is in excess:
new_frame = all_data_frame.rx((dataframe.rx2('input_type').ro == 'VALUE1').ro
& (dataframe.rx2('data_type').ro == 'VALUE2'),
True)
Otherwise this might change to and
, not &
. The later is a bitwise operator in Python.
>>> 1 & 2 # 0b01 & 0b10
0
>>> 1 & 3 # 0b01 & 0b11
1