Skip to content

Commit f43746c

Browse files
committed
DOC: more whatsnew fixes
1 parent 53a6830 commit f43746c

File tree

1 file changed

+35
-30
lines changed

1 file changed

+35
-30
lines changed

doc/source/whatsnew/v0.17.0.txt

+35-30
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,10 @@ Other enhancements
130130
^^^^^^^^^^^^^^^^^^
131131

132132
- `read_sql` and `to_sql` can accept database URI as con parameter (:issue:`10214`)
133-
134133
- Enable `read_hdf` to be used without specifying a key when the HDF file contains a single dataset (:issue:`10443`)
135-
134+
- Enable writing Excel files in :ref:`memory <_io.excel_writing_buffer>` using StringIO/BytesIO (:issue:`7074`)
135+
- Enable serialization of lists and dicts to strings in ExcelWriter (:issue:`8188`)
136136
- Added functionality to use the ``base`` argument when resampling a ``TimeDeltaIndex`` (:issue:`10530`)
137-
138137
- ``DatetimeIndex`` can be instantiated using strings contains ``NaT`` (:issue:`7599`)
139138
- The string parsing of ``to_datetime``, ``Timestamp`` and ``DatetimeIndex`` has been made consistent. (:issue:`7599`)
140139

@@ -235,7 +234,7 @@ Changes to sorting API
235234

236235
The sorting API has had some longtime inconsistencies. (:issue:`9816`, :issue:`8239`).
237236

238-
Here is a summary of the **PRIOR** to 0.17.0:
237+
Here is a summary of the API **PRIOR** to 0.17.0:
239238

240239
- ``Series.sort`` is **INPLACE** while ``DataFrame.sort`` returns a new object.
241240
- ``Series.order`` returns a new object
@@ -256,19 +255,19 @@ will show a ``FutureWarning``.
256255

257256
To sort by the **values**:
258257

259-
================================= ====================================
258+
================================== ====================================
260259
Previous Replacement
261-
================================= ====================================
262-
\* ``Series.order()`` ``Series.sort_values()``
263-
\* ``Series.sort()`` ``Series.sort_values(inplace=True)``
264-
\* ``DataFrame.sort(columns=...)`` ``DataFrame.sort_values(by=...)``
265-
================================= ====================================
260+
================================== ====================================
261+
\* ``Series.order()`` ``Series.sort_values()``
262+
\* ``Series.sort()`` ``Series.sort_values(inplace=True)``
263+
\* ``DataFrame.sort(columns=...)`` ``DataFrame.sort_values(by=...)``
264+
================================== ====================================
266265

267266
To sort by the **index**:
268267

269-
================================= ====================================
270-
Previous Equivalent
271-
================================= ====================================
268+
================================== ====================================
269+
Previous Replacement
270+
================================== ====================================
272271
``Series.sort_index()`` ``Series.sort_index()``
273272
``Series.sortlevel(level=...)`` ``Series.sort_index(level=...``)
274273
``DataFrame.sort_index()`` ``DataFrame.sort_index()``
@@ -281,8 +280,8 @@ We have also deprecated and changed similar methods in two Series-like classes,
281280
================================== ====================================
282281
Previous Replacement
283282
================================== ====================================
284-
\* ``Index.order()`` ``Index.sort_values()``
285-
\* ``Categorical.order()`` ``Categorical.sort_values``
283+
\* ``Index.order()`` ``Index.sort_values()``
284+
\* ``Categorical.order()`` ``Categorical.sort_values``
286285
================================== ====================================
287286

288287
.. _whatsnew_0170.api_breaking.to_datetime:
@@ -351,7 +350,7 @@ keyword argument to ``'coerce'`` instead of ``True``, as in ``convert_dates='coe
351350
's': ['apple','banana']})
352351
df
353352

354-
The old usage of ``DataFrame.convert_objects`` used `'coerce'` along with the
353+
The old usage of ``DataFrame.convert_objects`` used ``'coerce'`` along with the
355354
type.
356355

357356
.. code-block:: python
@@ -366,8 +365,7 @@ Now the ``coerce`` keyword must be explicitly used.
366365

367366
In earlier versions of pandas, ``DataFrame.convert_objects`` would not coerce
368367
numeric types when there were no values convertible to a numeric type. This returns
369-
the original DataFrame with no conversion. This change alters
370-
this behavior so that converts all non-number-like strings to ``NaN``.
368+
the original DataFrame with no conversion.
371369

372370
.. code-block:: python
373371

@@ -378,6 +376,9 @@ this behavior so that converts all non-number-like strings to ``NaN``.
378376
0 a
379377
1 b
380378

379+
THe new behavior will convert all non-number-like strings to ``NaN``,
380+
when ``coerce=True`` is passed explicity.
381+
381382
.. ipython:: python
382383

383384
pd.DataFrame({'s': ['a','b']})
@@ -517,7 +518,10 @@ New behavior:
517518

518519
.. ipython:: python
519520

520-
df_with_missing.to_hdf('file.h5', 'df_with_missing', format = 'table', mode='w')
521+
df_with_missing.to_hdf('file.h5',
522+
'df_with_missing',
523+
format='table',
524+
mode='w')
521525

522526
pd.read_hdf('file.h5', 'df_with_missing')
523527

@@ -571,10 +575,10 @@ from ``7``.
571575
Changes to ``Categorical.unique``
572576
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
573577

574-
``Categorical.unique`` now returns new ``Categorical`` which ``categories`` and ``codes`` that are unique, rather than returning ``np.array`` (:issue:`10508`)
578+
``Categorical.unique`` now returns new ``Categoricals`` with ``categories`` and ``codes`` that are unique, rather than returning ``np.array`` (:issue:`10508`)
575579

576580
- unordered category: values and categories are sorted by appearance order.
577-
- ordered category: values are sorted by appearance order, categories keeps existing order.
581+
- ordered category: values are sorted by appearance order, categories keep existing order.
578582

579583
.. ipython :: python
580584

@@ -597,25 +601,23 @@ Other API Changes
597601

598602
- Line and kde plot with ``subplots=True`` now uses default colors, not all black. Specify ``color='k'`` to draw all lines in black (:issue:`9894`)
599603
- Calling the ``.value_counts`` method on a Series with ``categorical`` dtype now returns a Series with a ``CategoricalIndex`` (:issue:`10704`)
600-
- Enable writing Excel files in :ref:`memory <_io.excel_writing_buffer>` using StringIO/BytesIO (:issue:`7074`)
601-
- Enable serialization of lists and dicts to strings in ExcelWriter (:issue:`8188`)
602604
- Allow passing `kwargs` to the interpolation methods (:issue:`10378`).
603-
- Serialize metadata properties of subclasses of pandas objects (:issue:`10553`).
605+
- The metadata properties of subclasses of pandas objects will now be serialized (:issue:`10553`).
604606
- Allow ``DataFrame`` with ``MultiIndex`` columns to be written to Excel (:issue:`10564`). This was changed in 0.16.2 as the read-back method could not always guarantee perfect fidelity (:issue:`9794`).
605607
- ``groupby`` using ``Categorical`` follows the same rule as ``Categorical.unique`` described above (:issue:`10508`)
608+
- Improved error message when concatenating an empty iterable of dataframes (:issue:`9157`)
609+
606610
- ``NaT``'s methods now either raise ``ValueError``, or return ``np.nan`` or ``NaT`` (:issue:`9513`)
607611

608612
=============================== ===============================================================
609613
Behavior Methods
610614
=============================== ===============================================================
611-
``return np.nan`` ``weekday``, ``isoweekday``
612-
``return NaT`` ``date``, ``now``, ``replace``, ``to_datetime``, ``today``
613-
``return np.datetime64('NaT')`` ``to_datetime64`` (unchanged)
614-
``raise ValueError`` All other public methods (names not beginning with underscores)
615+
return ``np.nan`` ``weekday``, ``isoweekday``
616+
return ``NaT`` ``date``, ``now``, ``replace``, ``to_datetime``, ``today``
617+
return ``np.datetime64('NaT')`` ``to_datetime64`` (unchanged)
618+
raise ``ValueError`` All other public methods (names not beginning with underscores)
615619
=============================== ===============================================================
616620

617-
- Improved error message when concatenating an empty iterable of dataframes (:issue:`9157`)
618-
619621
.. _whatsnew_0170.deprecations:
620622

621623
Deprecations
@@ -703,6 +705,8 @@ Removal of prior version deprecations/changes
703705

704706
Performance Improvements
705707
~~~~~~~~~~~~~~~~~~~~~~~~
708+
709+
- Development support for benchmarking with the `Air Speed Velocity library <https://github.com/spacetelescope/asv/>`_ (:issue:`8316`)
706710
- Added vbench benchmarks for alternative ExcelWriter engines and reading Excel files (:issue:`7171`)
707711
- Performance improvements in ``Categorical.value_counts`` (:issue:`10804`)
708712
- Performance improvements in ``SeriesGroupBy.nunique`` and ``SeriesGroupBy.value_counts`` (:issue:`10820`)
@@ -720,6 +724,7 @@ Performance Improvements
720724

721725
Bug Fixes
722726
~~~~~~~~~
727+
723728
- Bug in ``DataFrame.to_html(index=False)`` renders unnecessary ``name`` row (:issue:`10344`)
724729
- Bug in ``DataFrame.apply`` when function returns categorical series. (:issue:`9573`)
725730
- Bug in ``to_datetime`` with invalid dates and formats supplied (:issue:`10154`)

0 commit comments

Comments
 (0)