'grouping dataframe based on specific column value
I am working on realtime project.I have I dataframe looks like below.
| id | name | values|
| 101 | a | 13 |
| 101 | b | 14 | | cv | 59 |
| 101 | c | 13 | | 23 |
| 102 | a | 13 |
| 102 | b | 14 | | cv | 56 |
| 102 | c | 17 | | 23
I need the data fame looks like below when the value is same like 'cv'
| 101 | a | 13 |
| 101 | b | cv |
| 101 | c | 13 | | 23 |
| 102 | a | 13 |
| 102 | b | cv |
| 102 | c | 17 | 23 |
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
