Skip to content

Commit 7df795a

Browse files
Docs docs
1 parent e260265 commit 7df795a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

doc/source/user_guide/advanced.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,8 @@ values **not** in the categories, similarly to how you can reindex **any** panda
783783

784784
.. ipython:: python
785785
786-
df3 = pd.DataFrame({'A': np.arange(3), 'B': pd.Series(list('abc')).astype('category')})
786+
df3 = pd.DataFrame({'A': np.arange(3),
787+
'B': pd.Series(list('abc')).astype('category')})
787788
df3 = df3.set_index('B')
788789
df3.reindex(['a', 'e'])
789790
df3.reindex(['a', 'e']).index

doc/source/whatsnew/v1.0.0.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Categorical
165165

166166
- Added test to assert the :func:`fillna` raises the correct ValueError message when the value isn't a value from categories (:issue:`13628`)
167167
- Bug in :meth:`Categorical.astype` where ``NaN`` values were handled incorrectly when casting to int (:issue:`28406`)
168-
- 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`)
168+
- :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`)
169169
-
170170

171171

@@ -229,7 +229,7 @@ Indexing
229229
- Bug in reindexing a :meth:`PeriodIndex` with another type of index that contained a `Period` (:issue:`28323`) (:issue:`28337`)
230230
- Fix assignment of column via `.loc` with numpy non-ns datetime type (:issue:`27395`)
231231
- Bug in :meth:`Float64Index.astype` where ``np.inf`` was not handled properly when casting to an integer dtype (:issue:`28475`)
232-
- :meth:`Index.union` could fail when the LHS contained duplicates (:issue:`28257`)
232+
- :meth:`Index.union` could fail when the left contained duplicates (:issue:`28257`)
233233
- :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`)
234234
-
235235

0 commit comments

Comments
 (0)