Comparing Boolean Values of Pandas Dataframes- Returning String
问题 I have 4 dataframes I'm going to be comparing, that each look like ID Jan Feb Mar 1 True True False 2 True True True 3 False False False anywhere from 2 to 3000 rows. They will have the exact same column names but may not always share all the same index IDs. What I would like to do is compare them and generate a new dataframe based on their values. For any cell that was False in at least one dataframe, I want to assign it a string (e.g. "False in Dataframe1") and if multiple, append both (e.g