american_indian | asian | black | declined_race | multiracial | pacific_islander | unavilable_race | white |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Is there a simple way (without a script) to create a new column (race) that can sort each of the individual columns information? I would like the new column to be something like this:
.
american_indian | asian | black | declined_race | multiracial | pacific_islander | unavilable_race | white | Race |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | white |
0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | asian |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | white |
0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | black |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | white |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | white |
1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | american_indian |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | white |