stacking/unstacking introduced nans into coordinate of 'object' type, meaning .str.contains() cannot match it. Fixed by replacing na values with "" (empty string), which should never match with condition_string, unless of course it is the empty string.
stacking/unstacking introduced nans into coordinate of 'object' type, meaning .str.contains() cannot match it. Fixed by replacing na values with "" (empty string), which should never match with condition_string, unless of course it is the empty string.