Points.unique

Points.unique()

Only the unique points from this object.

Any repeated points will be removed from the returned object. If point names are present, the point name of the first instance of the unique point in this object will be assigned.

Returns:

nimble Base object – The object containing only unique points.

Examples

>>> lst = [['a', 1, 3],
...        ['b', 5, 6],
...        ['b', 7, 1],
...        ['a', 1, 3]]
>>> ptNames = ['p1', 'p2', 'p3', 'p1_copy']
>>> X = nimble.data(lst, pointNames=ptNames)
>>> uniquePoints = X.points.unique()
>>> uniquePoints
<DataFrame 3pt x 3ft
      0  1  2
    ┌────────
 p1 │ a  1  3
 p2 │ b  5  6
 p3 │ b  7  1
>

Keywords: distinct, different