You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.19.0.txt
+1-1
Original file line number
Diff line number
Diff line change
@@ -479,7 +479,7 @@ Other enhancements
479
479
df.resample('M', on='date').sum()
480
480
df.resample('M', level='d').sum()
481
481
482
-
- The ``.get_credentials()`` method of ``GbqConnector`` can now first try to fetch `the application default credentials <https://developers.google.com/identity/protocols/application-default-credentials>`__. See the :ref:`docs <io.bigquery_authentication>` for more details (:issue:`13577`).
482
+
- The ``.get_credentials()`` method of ``GbqConnector`` can now first try to fetch `the application default credentials <https://developers.google.com/identity/protocols/application-default-credentials>`__. See the docs for more details (:issue:`13577`).
483
483
- The ``.tz_localize()`` method of ``DatetimeIndex`` and ``Timestamp`` has gained the ``errors`` keyword, so you can potentially coerce nonexistent timestamps to ``NaT``. The default behavior remains to raising a ``NonExistentTimeError`` (:issue:`13057`)
484
484
- ``.to_hdf/read_hdf()`` now accept path objects (e.g. ``pathlib.Path``, ``py.path.local``) for the file path (:issue:`11773`)
485
485
- The ``pd.read_csv()`` with ``engine='python'`` has gained support for the
applymap(lambda val: 'color: %s' % 'red' if val < 0 else 'black').\
388
+
apply(lambda s: ['background-color: yellow' if v else ''
389
+
for v in s == s.max()])
390
+
styled.to_excel('styled.xlsx', engine='openpyxl')
389
391
390
392
.. image:: _static/style-excel.png
391
393
392
394
.. ipython:: python
393
-
:suppress:
394
-
import os
395
-
os.remove('styled.xlsx')
395
+
:suppress:
396
+
397
+
import os
398
+
os.remove('styled.xlsx')
396
399
397
400
See the :ref:`Style documentation <style.ipynb#Export-to-Excel>` for more detail.
398
401
@@ -490,7 +493,7 @@ Other Enhancements
490
493
- ``Series.interpolate()`` now supports timedelta as an index type with ``method='time'`` (:issue:`6424`)
491
494
- Addition of a ``level`` keyword to ``DataFrame/Series.rename`` to rename
492
495
labels in the specified level of a MultiIndex (:issue:`4160`).
493
-
- ``DataFrame.reset_index()`` will now interpret a tuple ``index.name`` as a key spanning across levels of ``columns``, if this is a ``MultiIndex`` (:issues:`16164`)
496
+
- ``DataFrame.reset_index()`` will now interpret a tuple ``index.name`` as a key spanning across levels of ``columns``, if this is a ``MultiIndex`` (:issue:`16164`)
494
497
- ``Timedelta.isoformat`` method added for formatting Timedeltas as an `ISO 8601 duration`_. See the :ref:`Timedelta docs <timedeltas.isoformat>` (:issue:`15136`)
495
498
- ``.select_dtypes()`` now allows the string ``datetimetz`` to generically select datetimes with tz (:issue:`14910`)
496
499
- The ``.to_latex()`` method will now accept ``multicolumn`` and ``multirow`` arguments to use the accompanying LaTeX enhancements
0 commit comments