Skip to content

Commit 23cf851

Browse files
Update series.py
1 parent f7d7fd1 commit 23cf851

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pandas/core/series.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ def unique(self):
14381438
14391439
Returns
14401440
-------
1441-
unique values : ndarray or Categorical
1441+
ndarray or Categorical
14421442
The unique values returned as a NumPy array. In case of categorical
14431443
data type, returned as a Categorical.
14441444
@@ -1452,13 +1452,10 @@ def unique(self):
14521452
>>> pd.Series([2, 1, 3, 3], name='A').unique()
14531453
array([2, 1, 3])
14541454
1455-
>>> pd.Series([2] + [1] * 5).unique()
1456-
array([2, 1])
1457-
1458-
>>> pd.Series([pd.Timestamp('20160101') for _ in range(3)]).unique()
1455+
>>> pd.Series([pd.Timestamp('2016-01-01') for _ in range(3)]).unique()
14591456
array(['2016-01-01T00:00:00.000000000'], dtype='datetime64[ns]')
14601457
1461-
>>> pd.Series([pd.Timestamp('20160101', tz='US/Eastern')
1458+
>>> pd.Series([pd.Timestamp('2016-01-01', tz='US/Eastern')
14621459
... for _ in range(3)]).unique()
14631460
array([Timestamp('2016-01-01 00:00:00-0500', tz='US/Eastern')],
14641461
dtype=object)

0 commit comments

Comments
 (0)