Closed
Description
When specifying a dictionary map for renaming the index of a DataFrame, the renaming ends up including column values as well, even when they are not of the same type. For example, in the screen shot below, I have demographic information on race coded as integers 1-7 that I am remapping to string representations, and boolean values for the column headers specifying case status. When I specify a dictionary of mappings from integers to strings as the index
argument, it treats the True
value in the column header as a 1 and substitutes it.
Even if I specify value for columns
it does not change the behavior.