I have this weird situation and cannot figure out why the outcome is this way. It is a bit complicated (to me) to explain, so bear with me.
I have a dataframe