Imagine I have a Dask
DataFrame from read_csv
or created another way.
How can I make a unique index for the dask dataframe?
Note:
reset_index
builds a monotonically ascending index in each partition. That means (0,1,2,3,4,5,... ) for Partition 1,
(0,1,2,3,4,5,... ) for Partition 2, (0,1,2,3,4,5,... ) for Partition 3 and so on.
I would like a unique index for every row in the dataframe (across all partitions).