Skip to content

Commit f621ed3

Browse files
committed
doc fixes
1 parent c37e9c3 commit f621ed3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/source/whatsnew/v0.20.0.txt

+5-3
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,8 @@ ndarray, you can always convert explicitly using ``np.asarray(idx.hour)``.
598598
pd.unique will now be consistent with extension types
599599
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
600600

601-
In prior versions, using ``Series.unique()`` and ``pd.unique(Series)`` on ``Categorical`` and tz-aware datatypes would yield different return types. These are now consistent to return the extension type.
601+
In prior versions, using ``Series.unique()`` and ``pd.unique(Series)`` on ``Categorical`` and tz-aware
602+
datatypes would yield different return types. These are now made consistent.
602603

603604
- Datetime tz-aware
604605

@@ -628,13 +629,13 @@ In prior versions, using ``Series.unique()`` and ``pd.unique(Series)`` on ``Cate
628629

629630
.. ipython:: python
630631

631-
# Series
632+
# Series, returns an array of Timestamp tz-aware
632633
Series(pd.Index([pd.Timestamp('20160101', tz='US/Eastern'),
633634
pd.Timestamp('20160101', tz='US/Eastern')])).unique()
634635
pd.unique(Series(pd.Index([pd.Timestamp('20160101', tz='US/Eastern'),
635636
pd.Timestamp('20160101', tz='US/Eastern')])))
636637

637-
# Index
638+
# Index, returns a DatetimeIndex
638639
pd.Index([pd.Timestamp('20160101', tz='US/Eastern'),
639640
pd.Timestamp('20160101', tz='US/Eastern')])
640641
pd.unique(pd.Index([pd.Timestamp('20160101', tz='US/Eastern'),
@@ -658,6 +659,7 @@ In prior versions, using ``Series.unique()`` and ``pd.unique(Series)`` on ``Cate
658659

659660
.. ipython:: python
660661

662+
# returns a Categorical
661663
pd.Series(pd.Categorical(list('aabc'))).unique()
662664
pd.unique(pd.Series(pd.Categorical(list('aabc'))).unique())
663665

0 commit comments

Comments
 (0)