'Multilength array of array based on dataframe values
I've got say a 'theoretical' dataset with multiple occurrences of different ids. For example, 191 (three times); 192 (11 times); 193 (4 times) and etc. I just want to convert this dataframe column to an array of arrays of different length using numpy. I know that there is a .reshape() method that returns arrays of fixed length, but this kinda conditional shape formatting is out of the scope of my knowledge.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
