I have a dataframe of arrays such as:
| A | B | C |
|:---- |:------:| -----:|
| [0,1,2,3] | [1,2,5,6] | [0,1,4,5] |
| [0,0,6,3] | [0,2,0,4] | [3,8,7,1] |
| [1,0,2,1] | [0,0,2,0] | [1,2,1,1] |
I want to convert to get the unique and count values of the whole dataframe.
| value | count |
|------ |------|
|0| 9|
|1| 9|
|2| 6|
|3| 3|
|4| 2|
|5| 2|
|6| 2|
|7| 1|
|8| 1|
Any idea? Thank you!
CodePudding user response: