Skip to content

Commit 7c319fd

Browse files
committed
DOC: v0.15.0.txt edits
1 parent 034ef8d commit 7c319fd

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

doc/source/io.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,10 +2060,10 @@ files if `Xlsxwriter`_ is not available.
20602060
To specify which writer you want to use, you can pass an engine keyword
20612061
argument to ``to_excel`` and to ``ExcelWriter``. The built-in engines are:
20622062

2063-
- `'openpyxl`': This includes stable support for OpenPyxl 1.6.1 up to but
2063+
- ``openpyxl``: This includes stable support for OpenPyxl 1.6.1 up to but
20642064
not including 2.0.0, and experimental support for OpenPyxl 2.0.0 and later.
2065-
- `'xlsxwriter'`
2066-
- `'xlwt'`
2065+
- ``xlsxwriter``
2066+
- ``xlwt``
20672067

20682068
.. code-block:: python
20692069

doc/source/v0.15.0.txt

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ users upgrade to this version.
1919
- New scalar type ``Timedelta``, and a new index type ``TimedeltaIndex``, see :ref:`here <whatsnew_0150.timedeltaindex>`
2020
- New datetimelike properties accessor ``.dt`` for Series, see :ref:`Datetimelike Properties <whatsnew_0150.dt>`
2121
- Split indexing documentation into :ref:`Indexing and Selecting Data <indexing>` and :ref:`MultiIndex / Advanced Indexing <advanced>`
22+
- ``read_csv`` will now by default ignore blank lines when parsing, see :ref:`here <whatsnew_0150.blanklines>`
2223
- API change in using Indexes in set operations, see :ref:`here <whatsnew_0150.index_set_ops>`
2324
- Internal refactoring of the ``Index`` class to no longer sub-class ``ndarray``, see :ref:`Internal Refactoring <whatsnew_0150.refactoring>`
2425
- dropping support for ``PyTables`` less than version 3.0.0, and ``numexpr`` less than version 2.1 (:issue:`7990`)
@@ -61,9 +62,11 @@ API changes
6162

6263
- Raise a ``ValueError`` in ``df.to_hdf`` with 'fixed' format, if ``df`` has non-unique columns as the resulting file will be broken (:issue:`7761`)
6364

65+
.. _whatsnew_0150.blanklines:
66+
6467
- Made both the C-based and Python engines for `read_csv` and `read_table` ignore empty lines in input as well as
65-
whitespace-filled lines, as long as `sep` is not whitespace. This is an API change
66-
that can be controlled by the keyword parameter `skip_blank_lines`. see :ref:`here <io.skiplines>`(:issue:`4466`)
68+
whitespace-filled lines, as long as ``sep`` is not whitespace. This is an API change
69+
that can be controlled by the keyword parameter ``skip_blank_lines``. See :ref:`the docs <io.skiplines>` (:issue:`4466`)
6770

6871
- Bug in passing a ``DatetimeIndex`` with a timezone that was not being retained in DataFrame construction from a dict (:issue:`7822`)
6972

@@ -140,6 +143,10 @@ API changes
140143
didx
141144
didx.tz_localize(None)
142145

146+
- ``tz_localize`` now accepts the ``ambiguous`` keyword which allows for passing an array of bools
147+
indicating whether the date belongs in DST or not, 'NaT' for setting transition times to NaT,
148+
'infer' for inferring DST/non-DST, and 'raise' (default) for an AmbiguousTimeError to be raised. See :ref:`the docs<timeseries.timezone_ambiguous>` for more details (:issue:`7943`)
149+
143150
- ``DataFrame.tz_localize`` and ``DataFrame.tz_convert`` now accepts an optional ``level`` argument
144151
for localizing a specific level of a MultiIndex (:issue:`7846`)
145152
- ``Timestamp.tz_localize`` and ``Timestamp.tz_convert`` now raise ``TypeError`` in error cases, rather than ``Exception`` (:issue:`8025`)
@@ -158,12 +165,17 @@ API changes
158165

159166
In prior versions there was a difference in these two constructs:
160167

161-
- ``df.loc[[3]]`` would (prior to 0.15.0) return a frame reindexed by 3 (with all ``np.nan`` values)
168+
- ``df.loc[[3]]`` would return a frame reindexed by 3 (with all ``np.nan`` values)
162169
- ``df.loc[[3],:]`` would raise ``KeyError``.
163170

164171
Both will now raise a ``KeyError``. The rule is that *at least 1* indexer must be found when using a list-like and ``.loc`` (:issue:`7999`)
165172

166-
There was also a difference between ``df.loc[[1,3]]`` (returns a frame reindexed by ``[1, 3]``) and ``df.loc[[1, 3],:]`` (would raise ``KeyError`` prior to 0.15.0). Both will now return a reindexed frame.
173+
Furthermore in prior versions these were also different:
174+
175+
- ``df.loc[[1,3]]`` would return a frame reindexed by [1,3]
176+
- ``df.loc[[1,3],:]`` would raise ``KeyError``.
177+
178+
Both will now return a frame reindex by [1,3]. E.g.
167179

168180
.. ipython:: python
169181

@@ -263,10 +275,6 @@ API changes
263275
# should be replaced by
264276
Index(['a','b','c']).difference(Index(['b','c','d']))
265277

266-
- ``tz_localize`` now accepts the ``ambiguous`` keyword which allows for passing an array of bools
267-
indicating whether the date belongs in DST or not, 'NaT' for setting transition times to NaT,
268-
'infer' for inferring DST/non-DST, and 'raise' (default) for an AmbiguousTimeError to be raised. See :ref:`the docs<timeseries.timezone_ambiguous>` for more details (:issue:`7943`)
269-
270278
- ``DataFrame.info()`` now ends its output with a newline character (:issue:`8114`)
271279

272280
.. _whatsnew_0150.dt:
@@ -351,6 +359,7 @@ Rolling/Expanding Moments API changes
351359
:func:`rolling_cov`, :func:`rolling_corr`, :func:`rolling_corr_pairwise`,
352360
:func:`rolling_window`, and :func:`rolling_apply` with ``center=True`` previously would return a result of the same
353361
structure as the input ``arg`` with ``NaN`` in the final ``(window-1)/2`` entries.
362+
354363
Now the final ``(window-1)/2`` entries of the result are calculated as if the input ``arg`` were followed
355364
by ``(window-1)/2`` ``NaN`` values (or with shrinking windows, in the case of :func:`rolling_apply`).
356365
(:issue:`7925`, :issue:`8269`)
@@ -575,7 +584,7 @@ This type is very similar to how ``Timestamp`` works for ``datetimes``. It is a
575584
Prior to 0.15.0 ``pd.to_timedelta`` would return a ``Series`` for list-like/Series input, and a ``np.timedelta64`` for scalar input.
576585
It will now return a ``TimedeltaIndex`` for list-like input, ``Series`` for Series input, and ``Timedelta`` for scalar input.
577586

578-
The arguments to ``pd.to_timedelta`` are now ``(arg,unit='ns',box=True)``, previously were ``(arg,box=True,unit='ns')`` as these are more logical.
587+
The arguments to ``pd.to_timedelta`` are now ``(arg,unit='ns',box=True,coerce=False)``, previously were ``(arg,box=True,unit='ns')`` as these are more logical.
579588

580589
Consruct a scalar
581590

@@ -738,7 +747,7 @@ Enhancements
738747

739748

740749

741-
- Added experimental compatibility with openpyxl v2. The ``DataFrame.to_excel``
750+
- Added experimental compatibility with ``openpyxl`` for versions >= 2.0. The ``DataFrame.to_excel``
742751
method ``engine`` keyword now recognizes ``openpyxl1`` and ``openpyxl2``
743752
which will explicitly require openpyxl v1 and v2 respectively, failing if
744753
the requested version is not available. The ``openpyxl`` engine is a now a

0 commit comments

Comments
 (0)