Skip to content

Commit 61edc76

Browse files
committed
DOC: typos in whatsnew 0.25.0
1 parent 5fa8a31 commit 61edc76

File tree

1 file changed

+24
-30
lines changed

1 file changed

+24
-30
lines changed

doc/source/whatsnew/v0.25.0.rst

+24-30
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,14 @@ Indexing a :class:`DataFrame` or :class:`Series` with a :class:`DatetimeIndex` w
5252
date string with a UTC offset would previously ignore the UTC offset. Now, the UTC offset
5353
is respected in indexing. (:issue:`24076`, :issue:`16785`)
5454

55-
*Previous Behavior*:
55+
.. ipython:: python
5656
57-
.. code-block:: ipython
57+
df = pd.DataFrame([0], index=pd.DatetimeIndex(['2019-01-01'], tz='US/Pacific'))
58+
df
5859
59-
In [1]: df = pd.DataFrame([0], index=pd.DatetimeIndex(['2019-01-01'], tz='US/Pacific'))
60+
*Previous Behavior*:
6061

61-
In [2]: df
62-
Out[2]:
63-
0
64-
2019-01-01 00:00:00-08:00 0
62+
.. code-block:: ipython
6563
6664
In [3]: df['2019-01-01 00:00:00+04:00':'2019-01-01 01:00:00+04:00']
6765
Out[3]:
@@ -70,9 +68,8 @@ is respected in indexing. (:issue:`24076`, :issue:`16785`)
7068
7169
*New Behavior*:
7270

73-
.. ipython:: ipython
71+
.. ipython:: python
7472
75-
df = pd.DataFrame([0], index=pd.DatetimeIndex(['2019-01-01'], tz='US/Pacific'))
7673
df['2019-01-01 12:00:00+04:00':'2019-01-01 13:00:00+04:00']
7774
7875
.. _whatsnew_0250.api_breaking.groupby_apply_first_group_once:
@@ -83,10 +80,7 @@ GroupBy.apply on ``DataFrame`` evaluates first group only once
8380
The implementation of :meth:`DataFrameGroupBy.apply() <pandas.core.groupby.DataFrameGroupBy.apply>`
8481
previously evaluated the supplied function consistently twice on the first group
8582
to infer if it is safe to use a fast code path. Particularly for functions with
86-
side effects, this was an undesired behavior and may have led to surprises.
87-
88-
(:issue:`2936`, :issue:`2656`, :issue:`7739`, :issue:`10519`, :issue:`12155`,
89-
:issue:`20084`, :issue:`21417`)
83+
side effects, this was an undesired behavior and may have led to surprises. (:issue:`2936`, :issue:`2656`, :issue:`7739`, :issue:`10519`, :issue:`12155`, :issue:`20084`, :issue:`21417`)
9084

9185
Now every group is evaluated only a single time.
9286

@@ -123,7 +117,7 @@ Concatenating Sparse Values
123117
^^^^^^^^^^^^^^^^^^^^^^^^^^^
124118

125119
When passed DataFrames whose values are sparse, :func:`concat` will now return a
126-
Series or DataFrame with sparse values, rather than a ``SparseDataFrame`` (:issue:`25702`).
120+
:class:`Series` or :class:`DataFrame` with sparse values, rather than a :class`SparseDataFrame` (:issue:`25702`).
127121

128122
.. ipython:: python
129123
@@ -160,7 +154,7 @@ cause a ``SparseSeries`` or ``SparseDataFrame`` to be returned, as before.
160154
Increased minimum versions for dependencies
161155
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
162156

163-
Due to dropping support for Python 2.7, a number of optional dependencies have updated minimum versions (issue:`25725`, :issue:`24942`, :issue:`25752`).
157+
Due to dropping support for Python 2.7, a number of optional dependencies have updated minimum versions (:issue:`25725`, :issue:`24942`, :issue:`25752`).
164158
Independently, some minimum supported versions of dependencies were updated (:issue:`23519`, :issue:`25554`).
165159
If installed, we now require:
166160

@@ -214,7 +208,7 @@ Other API Changes
214208
^^^^^^^^^^^^^^^^^
215209

216210
- :class:`DatetimeTZDtype` will now standardize pytz timezones to a common timezone instance (:issue:`24713`)
217-
- ``Timestamp`` and ``Timedelta`` scalars now implement the :meth:`to_numpy` method as aliases to :meth:`Timestamp.to_datetime64` and :meth:`Timedelta.to_timedelta64`, respectively. (:issue:`24653`)
211+
- :class:`Timestamp` and :class:`Timedelta` scalars now implement the :meth:`to_numpy` method as aliases to :meth:`Timestamp.to_datetime64` and :meth:`Timedelta.to_timedelta64`, respectively. (:issue:`24653`)
218212
- :meth:`Timestamp.strptime` will now rise a ``NotImplementedError`` (:issue:`25016`)
219213
- Comparing :class:`Timestamp` with unsupported objects now returns :py:obj:`NotImplemented` instead of raising ``TypeError``. This implies that unsupported rich comparisons are delegated to the other object, and are now consistent with Python 3 behavior for ``datetime`` objects (:issue:`24011`)
220214
- Bug in :meth:`DatetimeIndex.snap` which didn't preserving the ``name`` of the input :class:`Index` (:issue:`25575`)
@@ -225,14 +219,14 @@ Other API Changes
225219
Deprecations
226220
~~~~~~~~~~~~
227221

228-
- Deprecated the `M (months)` and `Y (year)` `units` parameter of :func: `pandas.to_timedelta`, :func: `pandas.Timedelta` and :func: `pandas.TimedeltaIndex` (:issue:`16344`)
229-
- The functions :func:`pandas.to_datetime` and :func:`pandas.to_timedelta` have deprecated the ``box`` keyword. Instead, use :meth:`to_numpy` or :meth:`Timestamp.to_datetime64`/:meth:`Timedelta.to_timedelta64`. (:issue:`24416`)
222+
- Deprecated the ``units=M`` (months) and ``units=Y`` (year) parameters for ``units`` of :func:`pandas.to_timedelta`, :func:`pandas.Timedelta` and :func:`pandas.TimedeltaIndex` (:issue:`16344`)
223+
- The functions :func:`pandas.to_datetime` and :func:`pandas.to_timedelta` have deprecated the ``box`` keyword. Instead, use :meth:`to_numpy` or :meth:`Timestamp.to_datetime64` or :meth:`Timedelta.to_timedelta64`. (:issue:`24416`)
230224

231225
.. _whatsnew_0250.prior_deprecations:
232226

233227
Removal of prior version deprecations/changes
234228
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
235-
- Removed (parts of) :class:`Panel` (:issue:`25047`,:issue:`25191`,:issue:`25231`)
229+
- Removed ``Panel`` (:issue:`25047`, :issue:`25191`, :issue:`25231`)
236230
-
237231
-
238232
-
@@ -242,16 +236,16 @@ Removal of prior version deprecations/changes
242236
Performance Improvements
243237
~~~~~~~~~~~~~~~~~~~~~~~~
244238

245-
- Significant speedup in `SparseArray` initialization that benefits most operations, fixing performance regression introduced in v0.20.0 (:issue:`24985`)
246-
- `DataFrame.to_stata()` is now faster when outputting data with any string or non-native endian columns (:issue:`25045`)
239+
- Significant speedup in :class:`SparseArray` initialization that benefits most operations, fixing performance regression introduced in v0.20.0 (:issue:`24985`)
240+
- :meth:`DataFrame.to_stata()` is now faster when outputting data with any string or non-native endian columns (:issue:`25045`)
247241
- Improved performance of :meth:`Series.searchsorted`. The speedup is especially large when the dtype is
248242
int8/int16/int32 and the searched key is within the integer bounds for the dtype (:issue:`22034`)
249243
- Improved performance of :meth:`pandas.core.groupby.GroupBy.quantile` (:issue:`20405`)
250244
- Improved performance of :meth:`read_csv` by faster tokenizing and faster parsing of small float numbers (:issue:`25784`)
251245
- Improved performance of :meth:`read_csv` by faster parsing of N/A and boolean values (:issue:`25804`)
252246
- Imporved performance of :meth:`IntervalIndex.is_monotonic`, :meth:`IntervalIndex.is_monotonic_increasing` and :meth:`IntervalIndex.is_monotonic_decreasing` by removing conversion to :class:`MultiIndex` (:issue:`24813`)
253-
- Improved performance of :meth:DataFrame.`to_csv` when write datetime dtype data (:issue:`25708`)
254-
- Improved performance of :meth:`read_csv` by much faster parsing of MM/YYYY and DD/MM/YYYY datetime formats (:issue:`25922`)
247+
- Improved performance of :meth:`DataFrame.to_csv` when writing datetime dtypes (:issue:`25708`)
248+
- Improved performance of :meth:`read_csv` by much faster parsing of ``MM/YYYY`` and ``DD/MM/YYYY`` datetime formats (:issue:`25922`)
255249

256250
.. _whatsnew_0250.bug_fixes:
257251

@@ -271,8 +265,10 @@ Datetimelike
271265
^^^^^^^^^^^^
272266

273267
- Bug in :func:`to_datetime` which would raise an (incorrect) ``ValueError`` when called with a date far into the future and the ``format`` argument specified instead of raising ``OutOfBoundsDatetime`` (:issue:`23830`)
274-
- Bug in :func:`to_datetime` which would raise ``InvalidIndexError: Reindexing only valid with uniquely valued Index objects`` when called with ``cache=True``, with ``arg`` including at least two different elements from the set {None, numpy.nan, pandas.NaT} (:issue:`22305`)
268+
- Bug in :func:`to_datetime` which would raise ``InvalidIndexError: Reindexing only valid with uniquely valued Index objects`` when called with ``cache=True``, with ``arg`` including at least two different elements from the set ``{None, numpy.nan, pandas.NaT}`` (:issue:`22305`)
275269
- Bug in :class:`DataFrame` and :class:`Series` where timezone aware data with ``dtype='datetime64[ns]`` was not cast to naive (:issue:`25843`)
270+
- Improved :class:`Timestamp` type checking in various datetime functions to prevent exceptions when using a subclassed ``datetime`` (:issue:`25851`)
271+
- Bug in :class:`Series` and :class:`DataFrame` repr where ``np.datetime64('NaT')`` and ``np.timedelta64('NaT')`` with ``dtype=object`` would be represented as ``NaN`` (:issue:`25445`)
276272
-
277273

278274
Timedelta
@@ -397,9 +393,9 @@ Groupby/Resample/Rolling
397393
Reshaping
398394
^^^^^^^^^
399395

400-
- Bug in :func:`pandas.merge` adds a string of ``None`` if ``None`` is assigned in suffixes instead of remain the column name as-is (:issue:`24782`).
396+
- Bug in :func:`pandas.merge` adds a string of ``None``, if ``None`` is assigned in suffixes instead of remain the column name as-is (:issue:`24782`).
401397
- Bug in :func:`merge` when merging by index name would sometimes result in an incorrectly numbered index (:issue:`24212`)
402-
- :func:`to_records` now accepts dtypes to its `column_dtypes` parameter (:issue:`24895`)
398+
- :func:`to_records` now accepts dtypes to its ``column_dtypes`` parameter (:issue:`24895`)
403399
- Bug in :func:`concat` where order of ``OrderedDict`` (and ``dict`` in Python 3.6+) is not respected, when passed in as ``objs`` argument (:issue:`21510`)
404400
- Bug in :func:`pivot_table` where columns with ``NaN`` values are dropped even if ``dropna`` argument is ``False``, when the ``aggfunc`` argument contains a ``list`` (:issue:`22159`)
405401
- Bug in :func:`concat` where the resulting ``freq`` of two :class:`DatetimeIndex` with the same ``freq`` would be dropped (:issue:`3232`).
@@ -410,16 +406,14 @@ Reshaping
410406
Sparse
411407
^^^^^^
412408

413-
- Significant speedup in `SparseArray` initialization that benefits most operations, fixing performance regression introduced in v0.20.0 (:issue:`24985`)
409+
- Significant speedup in :class:`SparseArray` initialization that benefits most operations, fixing performance regression introduced in v0.20.0 (:issue:`24985`)
414410
- Bug in :class:`SparseFrame` constructor where passing ``None`` as the data would cause ``default_fill_value`` to be ignored (:issue:`16807`)
415-
- Bug in `SparseDataFrame` when adding a column in which the length of values does not match length of index, ``AssertionError`` is raised instead of raising ``ValueError`` (:issue:`25484`)
411+
- Bug in :class:`SparseDataFrame` when adding a column in which the length of values does not match length of index, ``AssertionError`` is raised instead of raising ``ValueError`` (:issue:`25484`)
416412

417413

418414
Other
419415
^^^^^
420416

421-
- Improved :class:`Timestamp` type checking in various datetime functions to prevent exceptions when using a subclassed `datetime` (:issue:`25851`)
422-
- Bug in :class:`Series` and :class:`DataFrame` repr where ``np.datetime64('NaT')`` and ``np.timedelta64('NaT')`` with ``dtype=object`` would be represented as ``NaN`` (:issue:`25445`)
423417
-
424418
-
425419

0 commit comments

Comments
 (0)