Skip to content

Commit

Permalink
Docs docs
Browse files Browse the repository at this point in the history
  • Loading branch information
batterseapower committed Sep 10, 2019
1 parent db711fe commit 5a9268a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion doc/source/user_guide/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,8 @@ values **not** in the categories, similarly to how you can reindex **any** panda

.. ipython:: python
df3 = pd.DataFrame({'A': np.arange(3), 'B': pd.Series(list('abc')).astype('category')})
df3 = pd.DataFrame({'A': np.arange(3),
'B': pd.Series(list('abc')).astype('category')})
df3 = df3.set_index('B')
df3.reindex(['a', 'e'])
df3.reindex(['a', 'e']).index
Expand Down
4 changes: 2 additions & 2 deletions doc/source/whatsnew/v1.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Categorical
^^^^^^^^^^^

- Added test to assert the :func:`fillna` raises the correct ValueError message when the value isn't a value from categories (:issue:`13628`)
- For :class:`CategoricalIndex`, :meth:`DataFrame.reindex` with a :class:`CategoricalIndex`, would fail when the targets contained duplicates, and wouldn't fail if the source contained duplicates (:issue:`28107`)
- :meth:`DataFrame.reindex` with a :class:`CategoricalIndex` would fail when the targets contained duplicates, and wouldn't fail if the source contained duplicates (:issue:`28107`)
-


Expand Down Expand Up @@ -164,7 +164,7 @@ Indexing

- Bug in assignment using a reverse slicer (:issue:`26939`)
- Bug in reindexing a :meth:`PeriodIndex` with another type of index that contained a `Period` (:issue:`28323`) (:issue:`28337`)
- :meth:`Index.union` could fail when the LHS contained duplicates (:issue:`28257`)
- :meth:`Index.union` could fail when the left contained duplicates (:issue:`28257`)
- :meth:`Index.get_indexer_non_unique` could fail with `TypeError` in some cases, such as when searching for ints in a string index (:issue:`28257`)
-

Expand Down

0 comments on commit 5a9268a

Please sign in to comment.