Skip to content

Commit

Permalink
DOC: fix typos in missing.rst
Browse files Browse the repository at this point in the history
xref #16972
  • Loading branch information
jreback committed Jul 27, 2017
1 parent c6e5bf6 commit 465c59f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions doc/source/missing_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ When / why does data become missing?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Some might quibble over our usage of *missing*. By "missing" we simply mean
**na** or "not present for whatever reason". Many data sets simply arrive with
**NA** or "not present for whatever reason". Many data sets simply arrive with
missing data, either because it exists and was not collected or it never
existed. For example, in a collection of financial time series, some of the time
series might start on different dates. Thus, values prior to the start date
Expand All @@ -63,12 +63,12 @@ to handling missing data. While ``NaN`` is the default missing value marker for
reasons of computational speed and convenience, we need to be able to easily
detect this value with data of different types: floating point, integer,
boolean, and general object. In many cases, however, the Python ``None`` will
arise and we wish to also consider that "missing" or "na".
arise and we wish to also consider that "missing" or "not available" or "NA".

.. note::

Prior to version v0.10.0 ``inf`` and ``-inf`` were also
considered to be "na" in computations. This is no longer the case by
considered to be "NA" in computations. This is no longer the case by
default; use the ``mode.use_inf_as_na`` option to recover it.

.. _missing.isna:
Expand Down Expand Up @@ -206,7 +206,7 @@ with missing data.
Filling missing values: fillna
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The **fillna** function can "fill in" NA values with non-na data in a couple
The **fillna** function can "fill in" NA values with non-NA data in a couple
of ways, which we illustrate:

**Replace NA with a scalar value**
Expand All @@ -220,7 +220,7 @@ of ways, which we illustrate:
**Fill gaps forward or backward**

Using the same filling arguments as :ref:`reindexing <basics.reindexing>`, we
can propagate non-na values forward or backward:
can propagate non-NA values forward or backward:

.. ipython:: python
Expand Down Expand Up @@ -540,7 +540,7 @@ String/Regular Expression Replacement
<http://docs.python.org/2/reference/lexical_analysis.html#string-literals>`__
if this is unclear.

Replace the '.' with ``nan`` (str -> str)
Replace the '.' with ``NaN`` (str -> str)

.. ipython:: python
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3213,7 +3213,7 @@ def isna(self):
def isnull(self):
return super(DataFrame, self).isnull()

@Appender(_shared_docs['isna'] % _shared_doc_kwargs)
@Appender(_shared_docs['notna'] % _shared_doc_kwargs)
def notna(self):
return super(DataFrame, self).notna()

Expand Down
4 changes: 2 additions & 2 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4534,7 +4534,7 @@ def asof(self, where, subset=None):
# Action Methods

_shared_docs['isna'] = """
Return a boolean same-sized object indicating if the values are na.
Return a boolean same-sized object indicating if the values are NA.
See Also
--------
Expand All @@ -4553,7 +4553,7 @@ def isnull(self):

_shared_docs['notna'] = """
Return a boolean same-sized object indicating if the values are
not na.
not NA.
See Also
--------
Expand Down
4 changes: 2 additions & 2 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1852,7 +1852,7 @@ def isna(self):
Returns
-------
a boolean array of whether my values are na
a boolean array of whether my values are NA
See also
--------
Expand All @@ -1870,7 +1870,7 @@ def notna(self):
Returns
-------
a boolean array of whether my values are not na
a boolean array of whether my values are not NA
See also
--------
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -2792,7 +2792,7 @@ def isna(self):
def isnull(self):
return super(Series, self).isnull()

@Appender(generic._shared_docs['isna'] % _shared_doc_kwargs)
@Appender(generic._shared_docs['notna'] % _shared_doc_kwargs)
def notna(self):
return super(Series, self).notna()

Expand Down

0 comments on commit 465c59f

Please sign in to comment.