Skip to content

Commit 5653fe4

Browse files
DOC: some typos in whatsnew (#17802)
1 parent a211b51 commit 5653fe4

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

doc/source/remote_data.rst

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ DataReader
1313

1414
The sub-package ``pandas.io.data`` was deprecated in v.0.17 and removed in
1515
`v.0.19 <http://pandas-docs.github.io/pandas-docs-travis/whatsnew.html#v0-19-0-october-2-2016>`__.
16-
Instead there has been created a separately installable `pandas-datareader package
17-
<https://github.com/pydata/pandas-datareader>`_. This will allow the data
18-
modules to be independently updated on your pandas installation.
16+
Instead there has been created a separately installable
17+
`pandas-datareader package <https://github.com/pydata/pandas-datareader>`__.
18+
This will allow the data modules to be independently updated on your pandas installation.
1919

20-
For code older than < 0.19 you should replace the imports of the following:
20+
For code older than < 0.19 you should replace the imports of the following:
2121

22-
.. code-block:: python
22+
.. code-block:: python
2323
24-
from pandas.io import data, wb
24+
from pandas.io import data, wb
2525
26-
With:
26+
With:
2727

28-
.. code-block:: python
28+
.. code-block:: python
2929
30-
from pandas_datareader import data, wb
30+
from pandas_datareader import data, wb

doc/source/whatsnew/v0.21.0.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Current Behavior
344344
3 NaN
345345
dtype: float64
346346

347-
The idiomatic way to achieve selecting potentially not-found elmenents is via ``.reindex()``
347+
The idiomatic way to achieve selecting potentially not-found elements is via ``.reindex()``
348348

349349
.. ipython:: python
350350

@@ -453,7 +453,7 @@ New Behaviour:
453453
Dtype Conversions
454454
^^^^^^^^^^^^^^^^^
455455

456-
Previously assignments, ``.where()`` and ``.fillna()`` with a ``bool`` assignment, would coerce to same the type (e.g. int / float), or raise for datetimelikes. These will now preseve the bools with ``object`` dtypes. (:issue:`16821`).
456+
Previously assignments, ``.where()`` and ``.fillna()`` with a ``bool`` assignment, would coerce to same the type (e.g. int / float), or raise for datetimelikes. These will now preserve the bools with ``object`` dtypes. (:issue:`16821`).
457457

458458
.. ipython:: python
459459

@@ -638,7 +638,7 @@ Other API Changes
638638
- :func:`read_csv` now treats ``'null'`` strings as missing values by default (:issue:`16471`)
639639
- :func:`read_csv` now treats ``'n/a'`` strings as missing values by default (:issue:`16078`)
640640
- :class:`pandas.HDFStore`'s string representation is now faster and less detailed. For the previous behavior, use ``pandas.HDFStore.info()``. (:issue:`16503`).
641-
- Compression defaults in HDF stores now follow pytable standards. Default is no compression and if ``complib`` is missing and ``complevel`` > 0 ``zlib`` is used (:issue:`15943`)
641+
- Compression defaults in HDF stores now follow pytables standards. Default is no compression and if ``complib`` is missing and ``complevel`` > 0 ``zlib`` is used (:issue:`15943`)
642642
- ``Index.get_indexer_non_unique()`` now returns a ndarray indexer rather than an ``Index``; this is consistent with ``Index.get_indexer()`` (:issue:`16819`)
643643
- Removed the ``@slow`` decorator from ``pandas.util.testing``, which caused issues for some downstream packages' test suites. Use ``@pytest.mark.slow`` instead, which achieves the same thing (:issue:`16850`)
644644
- Moved definition of ``MergeError`` to the ``pandas.errors`` module.
@@ -666,7 +666,7 @@ Deprecations
666666
- ``cdate_range`` has been deprecated in favor of :func:`bdate_range`, which has gained ``weekmask`` and ``holidays`` parameters for building custom frequency date ranges. See the :ref:`documentation <timeseries.custom-freq-ranges>` for more details (:issue:`17596`)
667667
- passing ``categories`` or ``ordered`` kwargs to :func:`Series.astype` is deprecated, in favor of passing a :ref:`CategoricalDtype <whatsnew_0210.enhancements.categorical_dtype>` (:issue:`17636`)
668668
- ``.get_value`` and ``.set_value`` on ``Series``, ``DataFrame``, ``Panel``, ``SparseSeries``, and ``SparseDataFrame`` are deprecated in favor of using ``.iat[]`` or ``.at[]`` accessors (:issue:`15269`)
669-
- Passing a non-existant column in ``.to_excel(..., columns=)`` is deprecated and will raise a ``KeyError`` in the future (:issue:`17295`)
669+
- Passing a non-existent column in ``.to_excel(..., columns=)`` is deprecated and will raise a ``KeyError`` in the future (:issue:`17295`)
670670
- ``raise_on_error`` parameter to :func:`Series.where`, :func:`Series.mask`, :func:`DataFrame.where`, :func:`DataFrame.mask` is deprecated, in favor of ``errors=`` (:issue:`14968`)
671671

672672
.. _whatsnew_0210.deprecations.select:
@@ -768,7 +768,7 @@ Conversion
768768
- Bug in :attr:`Timestamp.weekday_name` returning a UTC-based weekday name when localized to a timezone (:issue:`17354`)
769769
- Bug in ``Timestamp.replace`` when replacing ``tzinfo`` around DST changes (:issue:`15683`)
770770
- Bug in ``Timedelta`` construction and arithmetic that would not propagate the ``Overflow`` exception (:issue:`17367`)
771-
- Bug in :meth:`~DataFrame.astype` converting to object dtype when passeed extension type classes (`DatetimeTZDtype``, ``CategoricalDtype``) rather than instances. Now a ``TypeError`` is raised when a class is passed (:issue:`17780`).
771+
- Bug in :meth:`~DataFrame.astype` converting to object dtype when passed extension type classes (`DatetimeTZDtype``, ``CategoricalDtype``) rather than instances. Now a ``TypeError`` is raised when a class is passed (:issue:`17780`).
772772

773773
Indexing
774774
^^^^^^^^
@@ -827,7 +827,7 @@ Groupby/Resample/Rolling
827827
- Bug in ``.rolling(...).quantile()`` which incorrectly used different defaults than :func:`Series.quantile()` and :func:`DataFrame.quantile()` (:issue:`9413`, :issue:`16211`)
828828
- Bug in ``groupby.transform()`` that would coerce boolean dtypes back to float (:issue:`16875`)
829829
- Bug in ``Series.resample(...).apply()`` where an empty ``Series`` modified the source index and did not return the name of a ``Series`` (:issue:`14313`)
830-
- Bug in ``.rolling(...).apply(...)`` with a ``DataFrame`` with a ``DatetimeIndex``, a ``window`` of a timedelta-convertible and ``min_periods >= 1` (:issue:`15305`)
830+
- Bug in ``.rolling(...).apply(...)`` with a ``DataFrame`` with a ``DatetimeIndex``, a ``window`` of a timedelta-convertible and ``min_periods >= 1`` (:issue:`15305`)
831831
- Bug in ``DataFrame.groupby`` where index and column keys were not recognized correctly when the number of keys equaled the number of elements on the groupby axis (:issue:`16859`)
832832
- Bug in ``groupby.nunique()`` with ``TimeGrouper`` which cannot handle ``NaT`` correctly (:issue:`17575`)
833833
- Bug in ``DataFrame.groupby`` where a single level selection from a ``MultiIndex`` unexpectedly sorts (:issue:`17537`)

0 commit comments

Comments
 (0)