Solutionunvalidated
Use .astype(str) on the _merge column before comparison — merged[merged["_merge"].astype(str) == "left_only"]. Tension: The cleanest fix is to convert merged["_merge"] = merged["_merge"].astype("category") right after the merge to restore the old behavior. Outcome: Or use .eq() method and .fillna(False): merged[merged["_merge"].eq("left_only").fillna(False)].
31885544-b2e9-4e1c-8aec-9730f772a154
Use .astype(str) on the _merge column before comparison — merged[merged["_merge"].astype(str) == "left_only"]. Tension: The cleanest fix is to convert merged["_merge"] = merged["_merge"].astype("category") right after the merge to restore the old behavior. Outcome: Or use .eq() method and .fillna(False): merged[merged["_merge"].eq("left_only").fillna(False)].