To explain what I mean, let's use the following example:
------------------------
|A | B | C |
------------------------
|JAVA | 2 | 1 |
------------------------
|JAVA | 40 | 22 |
------------------------
|JAVA | 40 | 52 |
------------------------
|JAVA | 22 | 7 |
------------------------
|PYT | 7 | 99 |
------------------------
|C++ | 3 | 5 |
------------------------
The goal is to obtain like this:
|JAVA |
--------
|2 |
--------
|40 |
--------
|40 |
--------
|22 |
--------
In text, I want to get the duplicated values in a column as the name of a column in a new dataframe and its values are the corresponding values in the same row in another column of the old dataframe, hope I explained well. If any can help using python, I will appreciate it. Thanks