I have defined some simple function that I\'d like to apply to a dataframe, but got the error saying \'cannot reindex from a duplicate axis\'.
Here is the simple test