Is it possible to utilize the third column in the following example, to kind of "spread out"/unravel the values in e.g. a Pandas DataFrame in Python without actually duplicating the rows? So If we have an object looking like this:
X   Y   Count
1   2   3
2   2   2
4   3   1
How would I be able to give Count meaning here without
unraveling the rows into Count * row because that does not seem like a good solution as it makes the data take up much more space in memory.
So I don't want the DataFrame to just look like this:
X   Y   Count
1   2   1
1   2   1
1   2   1
2   2   1
2   2   1
4   3   1
 
    