ser.unique()
ser.unique()
Returns the unique values in the Series.
weight_ser = pets.get('Weight')
weight_ser
- 040
- 11.5
- 215
- 380
- 425
- 51
- 60.25
- 710
weight_ser.unique()
array([40. , 1.5 , 15. , 80. , 25. , 1. , 0.25, 10. ])
# Number of unique values
len(weight_ser.unique())
8