I am curious what would be an efficient way of uniquefying such data objects:
testdata =[ [\'9034968\', \'ETH\'], [\'14160113\', \'ETH\'], [\'9034968\', \'ETH
Use unique in numpy to solve this:
numpy
import numpy as np np.unique(np.array(testdata), axis=0)
Note that the axis keyword needs to be specified otherwise the list is first flattened.
axis
Alternatively, use vstack:
np.vstack({tuple(row) for row in testdata})