For the following series, drop_duplicates is not working correctly:
8672.0
8672.0
8672.0
8672.0
8670.0
8670.0
8670.0
8670.0
8670.0
8670.0
8672.0
8672.0
8672.0
8672.0
8672.0
8672.0
8672.0
8672.0
8672.0
8672.0
8670.0
8670.0
8670.0
8670.0
8670.0
by using drop_duplicates(keep='first'), it should return 4 values:
8672.0
8670.0
8672.0
8670.0
but actually, it only returns the first 2 values:
8672.0
8670.0
What's wrong with it or any suggestions for the usage of this drop_duplicates to get the values i want? Thank you so much.