Skip to content

Commit 856c3bd

Browse files
committed
DOC: minor whatsnew fixes
1 parent a544e9e commit 856c3bd

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

doc/source/whatsnew/v0.18.1.txt

+13-12
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,18 @@ Other Enhancements
8181
- ``interpolate()`` now supports ``method='akima'`` (:issue:`7588`).
8282
- ``Index.take`` now handles ``allow_fill`` and ``fill_value`` consistently (:issue:`12631`)
8383

84-
.. ipython:: python
84+
.. ipython:: python
8585

86-
idx = pd.Index([1., 2., 3., 4.], dtype='float')
87-
idx.take([2, -1]) # default, allow_fill=True, fill_value=None
88-
idx.take([2, -1], fill_value=True)
86+
idx = pd.Index([1., 2., 3., 4.], dtype='float')
87+
idx.take([2, -1]) # default, allow_fill=True, fill_value=None
88+
idx.take([2, -1], fill_value=True)
8989

9090
- ``Index`` now supports ``.str.get_dummies()`` which returns ``MultiIndex``, see :ref:`Creating Indicator Variables <text.indicator>` (:issue:`10008`, :issue:`10103`)
9191

92-
.. ipython:: python
92+
.. ipython:: python
9393

94-
idx = pd.Index(['a|b', 'a|c', 'b|c'])
95-
idx.str.get_dummies('|')
94+
idx = pd.Index(['a|b', 'a|c', 'b|c'])
95+
idx.str.get_dummies('|')
9696

9797
- ``pd.crosstab()`` has gained a ``normalize`` argument for normalizing frequency tables (:issue:`12569`). Examples in the updated docs :ref:`here <reshaping.crosstabulations>`.
9898

@@ -164,7 +164,7 @@ Previous Behavior:
164164

165165
New Behavior:
166166

167-
.. ipython:: ipython
167+
.. ipython:: python
168168

169169
df.groupby('A', as_index=True)['B'].nth(0)
170170
df.groupby('A', as_index=False)['B'].nth(0)
@@ -216,7 +216,7 @@ API changes
216216

217217
- ``Period`` and ``PeriodIndex`` now raises ``IncompatibleFrequency`` error which inherits ``ValueError`` rather than raw ``ValueError`` (:issue:`12615`)
218218

219-
- ``Series.apply`` for category dtype now applies passed function to each ``.categories`` (not ``.codes``), and returns "category" dtype if possible (:issue:`12473`)
219+
- ``Series.apply`` for category dtype now applies the passed function to each ``.categories`` (not ``.codes``), and returns a ``category`` dtype if possible (:issue:`12473`)
220220

221221
- ``read_csv`` will now raise a ``TypeError`` if ``parse_dates`` is neither a boolean, list, or dictionary (:issue:`5636`)
222222

@@ -237,7 +237,8 @@ Using ``apply`` on resampling groupby operations (using a ``pd.TimeGrouper``) no
237237

238238
.. ipython:: python
239239

240-
df = pd.DataFrame({'date': pd.to_datetime(['10/10/2000', '11/10/2000']), 'value': [10, 13]})
240+
df = pd.DataFrame({'date': pd.to_datetime(['10/10/2000', '11/10/2000']),
241+
'value': [10, 13]})
241242
df
242243

243244
Previous behavior:
@@ -424,7 +425,7 @@ Bug Fixes
424425
- Bug in ``.describe()`` resets categorical columns information (:issue:`11558`)
425426
- Bug where ``loffset`` argument was not applied when calling ``resample().count()`` on a timeseries (:issue:`12725`)
426427
- ``pd.read_excel()`` now accepts path objects (e.g. ``pathlib.Path``, ``py.path.local``) for the file path, in line with other ``read_*`` functions (:issue:`12655`)
427-
- ``pd.read_excel()`` now accepts column names associated with keyword argument ``names``(:issue `12870`)
428+
- ``pd.read_excel()`` now accepts column names associated with keyword argument ``names``(:issue:`12870`)
428429

429430

430-
- Bug in ``fill_value`` is ignored if the argument to a binary operator is a constant (:issue `12723`)
431+
- Bug in ``fill_value`` is ignored if the argument to a binary operator is a constant (:issue:`12723`)

0 commit comments

Comments
 (0)