Skip to content

Commit fb1d505

Browse files
committed
doc fixes
1 parent 1ec25a6 commit fb1d505

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
@@ -599,7 +599,8 @@ ndarray, you can always convert explicitly using ``np.asarray(idx.hour)``.
599599
pd.unique will now be consistent with extension types
600600
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
601601

602-
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.
602+
In prior versions, using ``Series.unique()`` and ``pd.unique(Series)`` on ``Categorical`` and tz-aware
603+
datatypes would yield different return types. These are now made consistent.
603604

604605
- Datetime tz-aware
605606

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

630631
.. ipython:: python
631632

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

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

660661
.. ipython:: python
661662

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

0 commit comments

Comments
 (0)