This question is an extension of the one already asked here: Melt multiple boolean columns in a single column in pandas
If the data looked like:
| System | Windows | Linux | Mac|
| -------- | -------------- |
| Desktop | True | True | False |
| Laptop | True | True | False
| Mobile | True | True | False
| Tablet | False | True | False
where 'System' is dtype=string and other columns are dtype=boolean. How can I make the final table look like this:
| OS | System |
| --- ----- | -------------- |
| Windows| Desktop Laptop Mobile |
| Linux | Desktop Laptop Mobile Tablet |
| Mac | |
where the values in the System column are separated by space.