Skip to content

Misc. Typo fixes #18966

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ matrix:
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# /E:ON and /V:ON options are not enabled in the batch script interpreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci\\run_with_env.cmd"
clone_folder: C:\projects\pandas
Expand Down
2 changes: 1 addition & 1 deletion asv_bench/benchmarks/frame_ctor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
try:
from pandas.tseries.offsets import Nano, Hour
except ImportError:
# For compatability with older versions
# For compatibility with older versions
from pandas.core.datetools import * # noqa

from .pandas_vb_common import setup # noqa
Expand Down
8 changes: 4 additions & 4 deletions asv_bench/benchmarks/pandas_vb_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
np.float64, np.int16, np.int8, np.uint16, np.uint8]
datetime_dtypes = [np.datetime64, np.timedelta64]

# This function just needs to be imported into each benchmark file in order to
# sets up the random seed before each function.
# This function just needs to be imported into each benchmark file in order to
# sets up the random seed before each function.
# http://asv.readthedocs.io/en/latest/writing_benchmarks.html
def setup(*args, **kwargs):
np.random.seed(1234)
Expand All @@ -36,14 +36,14 @@ def remove(self, f):
try:
os.remove(f)
except:
# On Windows, attempting to remove a file that is in use
# On Windows, attempting to remove a file that is in use
# causes an exception to be raised
pass

def teardown(self, *args, **kwargs):
self.remove(self.fname)

# Compatability import for lib
# Compatibility import for lib
for imp in ['pandas._libs.lib', 'pandas.lib', 'pandas_tseries']:
try:
lib = import_module(imp)
Expand Down
4 changes: 2 additions & 2 deletions doc/source/_static/banklist.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta charset="UTF-8">
<!-- Unicode character encoding -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Turns off IE Compatiblity Mode -->
<!-- Turns off IE Compatibility Mode -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Makes it so phones don't auto zoom out. -->
<meta name="author" content="DRR">
Expand Down Expand Up @@ -4849,7 +4849,7 @@ <h1 class="page_title">Failed Bank List</h1>
<ul>
<li><a href="/about/freedom/" title="Freedom of Information Act (FOIA) Service Center">Freedom of Information Act (FOIA) Service Center</a></li>
<li><a href="/open/" title="FDIC Open Government Webpage">FDIC Open Government Webpage</a></li>
<li><a href="/about/diversity/nofear/" title="No FEAR Act Data">No FEAR Act Data</a></li>
<li><a href="/about/diversity/nofear/" title="No FEAR Act Data">No FEAR Act Data</a></li>
</ul>
</div>
<div id="responsive_footer-small">
Expand Down
2 changes: 1 addition & 1 deletion doc/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ methods. In general, all classes and functions exposed in the top-level
``pandas.*`` namespace are regarded as public.

Further some of the subpackages are public, including ``pandas.errors``,
``pandas.plotting``, and ``pandas.testing``. Certain functions in the the
``pandas.plotting``, and ``pandas.testing``. Certain functions in the
``pandas.io`` and ``pandas.tseries`` submodules are public as well (those
mentioned in the documentation). Further, the ``pandas.api.types`` subpackage
holds some public functions related to data types in pandas.
Expand Down
2 changes: 1 addition & 1 deletion doc/source/basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ Mixed Dtypes
++++++++++++

When presented with mixed dtypes that cannot aggregate, ``.agg`` will only take the valid
aggregations. This is similiar to how groupby ``.agg`` works.
aggregations. This is similar to how groupby ``.agg`` works.

.. ipython:: python

Expand Down
2 changes: 1 addition & 1 deletion doc/source/computation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ These are created from methods on ``Series`` and ``DataFrame``.
r = s.rolling(window=60)
r

These object provide tab-completion of the avaible methods and properties.
These object provide tab-completion of the available methods and properties.

.. code-block:: ipython

Expand Down
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@
'import pandas as pd',
# This ensures correct rendering on system with console encoding != utf8
# (windows). It forces pandas to encode its output reprs using utf8
# whereever the docs are built. The docs' target is the browser, not
# wherever the docs are built. The docs' target is the browser, not
# the console, so this is fine.
'pd.options.display.encoding="utf8"'
]
Expand Down
10 changes: 5 additions & 5 deletions doc/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,16 @@ to build the documentation locally before pushing your changes.

.. _contributiong.dev_c:

Installing a C Complier
Installing a C Compiler
~~~~~~~~~~~~~~~~~~~~~~~

Pandas uses C extensions (mostly written using Cython) to speed up certain
operations. To install pandas from source, you need to compile these C
extensions, which means you need a C complier. This process depends on which
extensions, which means you need a C compiler. This process depends on which
platform you're using. Follow the `CPython contributing guidelines
<https://docs.python.org/devguide/setup.html#build-dependencies>`_ for getting a
complier installed. You don't need to do any of the ``./configure`` or ``make``
steps; you only need to install the complier.
compiler installed. You don't need to do any of the ``./configure`` or ``make``
steps; you only need to install the compiler.

For Windows developers, the following links may be helpful.

Expand All @@ -151,7 +151,7 @@ Let us know if you have any difficulties by opening an issue or reaching out on
Creating a Python Environment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now that you have a C complier, create an isolated pandas development
Now that you have a C compiler, create an isolated pandas development
environment:

- Install either `Anaconda <https://www.anaconda.com/download/>`_ or `miniconda
Expand Down
2 changes: 1 addition & 1 deletion doc/source/developer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ where ``KeyValue`` is
}

So that a ``pandas.DataFrame`` can be faithfully reconstructed, we store a
``pandas`` metadata key in the ``FileMetaData`` with the the value stored as :
``pandas`` metadata key in the ``FileMetaData`` with the value stored as :

.. code-block:: text

Expand Down
4 changes: 2 additions & 2 deletions doc/source/dsintro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ derived from existing columns.
.head())

In the example above, we inserted a precomputed value. We can also pass in
a function of one argument to be evalutated on the DataFrame being assigned to.
a function of one argument to be evaluated on the DataFrame being assigned to.

.. ipython:: python

Expand Down Expand Up @@ -957,7 +957,7 @@ pandas to focus on these areas exclusively.

Oftentimes, one can simply use a MultiIndex ``DataFrame`` for easily working with higher dimensional data.

In additon, the ``xarray`` package was built from the ground up, specifically in order to
In addition, the ``xarray`` package was built from the ground up, specifically in order to
support the multi-dimensional analysis that is one of ``Panel`` s main usecases.
`Here is a link to the xarray panel-transition documentation <http://xarray.pydata.org/en/stable/pandas.html#panel-transition>`__.

Expand Down
4 changes: 2 additions & 2 deletions doc/source/enhancingperf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Using ndarray

It's calling series... a lot! It's creating a Series from each row, and get-ting from both
the index and the series (three times for each row). Function calls are expensive
in python, so maybe we could minimise these by cythonizing the apply part.
in python, so maybe we could minimize these by cythonizing the apply part.

.. note::

Expand Down Expand Up @@ -578,7 +578,7 @@ on the original ``DataFrame`` or return a copy with the new column.

.. warning::

For backwards compatability, ``inplace`` defaults to ``True`` if not
For backwards compatibility, ``inplace`` defaults to ``True`` if not
specified. This will change in a future version of pandas - if your
code depends on an inplace assignment you should update to explicitly
set ``inplace=True``
Expand Down
4 changes: 2 additions & 2 deletions doc/source/indexing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ Indexing with list with missing labels is Deprecated

In prior versions, using ``.loc[list-of-labels]`` would work as long as *at least 1* of the keys was found (otherwise it
would raise a ``KeyError``). This behavior is deprecated and will show a warning message pointing to this section. The
recommeded alternative is to use ``.reindex()``.
recommended alternative is to use ``.reindex()``.

For example.

Expand Down Expand Up @@ -724,7 +724,7 @@ Having a duplicated index will raise for a ``.reindex()``:
In [17]: s.reindex(labels)
ValueError: cannot reindex from a duplicate axis

Generally, you can interesect the desired labels with the current
Generally, you can intersect the desired labels with the current
axis, and then reindex.

.. ipython:: python
Expand Down
2 changes: 1 addition & 1 deletion doc/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ To install pandas for Python 2 you may need to use the package ``python-pandas``
Debian, stable, `official Debian repository <http://packages.debian.org/search?keywords=pandas&searchon=names&suite=all&section=all>`__ , ``sudo apt-get install python3-pandas``
Debian & Ubuntu, unstable (latest packages), `NeuroDebian <http://neuro.debian.net/index.html#how-to-use-this-repository>`__ , ``sudo apt-get install python3-pandas``
Ubuntu, stable, `official Ubuntu repository <http://packages.ubuntu.com/search?keywords=pandas&searchon=names&suite=all&section=all>`__ , ``sudo apt-get install python3-pandas``
OpenSuse, stable, `OpenSuse Repository <http://software.opensuse.org/package/python-pandas?search_term=pandas>`__ , ``zypper in python3-pandas``
OpenSuse, stable, `OpenSuse Repository <http://software.opensuse.org/package/python-pandas?search_term=pandas>`__ , ``zypper in python3-pandas``
Fedora, stable, `official Fedora repository <https://admin.fedoraproject.org/pkgdb/package/rpms/python-pandas/>`__ , ``dnf install python3-pandas``
Centos/RHEL, stable, `EPEL repository <https://admin.fedoraproject.org/pkgdb/package/rpms/python-pandas/>`__ , ``yum install python3-pandas``

Expand Down
6 changes: 3 additions & 3 deletions doc/source/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ The ``thousands`` keyword allows integers to be parsed correctly
NA Values
'''''''''

To control which values are parsed as missing values (which are signified by ``NaN``), specifiy a
To control which values are parsed as missing values (which are signified by ``NaN``), specify a
string in ``na_values``. If you specify a list of strings, then all values in
it are considered to be missing values. If you specify a number (a ``float``, like ``5.0`` or an ``integer`` like ``5``),
the corresponding equivalent values will also imply a missing value (in this case effectively
Expand Down Expand Up @@ -4153,7 +4153,7 @@ Caveats

.. warning::

``PyTables`` will show a ``NaturalNameWarning`` if a column name
``PyTables`` will show a ``NaturalNameWarning`` if a column name
cannot be used as an attribute selector.
*Natural* identifiers contain only letters, numbers, and underscores,
and may not begin with a number.
Expand Down Expand Up @@ -4478,7 +4478,7 @@ Several caveats.
- Non supported types include ``Period`` and actual python object types. These will raise a helpful error message
on an attempt at serialization.

You can specifiy an ``engine`` to direct the serialization. This can be one of ``pyarrow``, or ``fastparquet``, or ``auto``.
You can specify an ``engine`` to direct the serialization. This can be one of ``pyarrow``, or ``fastparquet``, or ``auto``.
If the engine is NOT specified, then the ``pd.options.io.parquet.engine`` option is checked; if this is also ``auto``, then
then ``pyarrow`` is tried, and falling back to ``fastparquet``.

Expand Down
2 changes: 1 addition & 1 deletion doc/source/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ lines are replaced by an ellipsis.
df
pd.reset_option('max_rows')

``display.expand_frame_repr`` allows for the the representation of
``display.expand_frame_repr`` allows for the representation of
dataframes to stretch across pages, wrapped over the full column vs row-wise.

.. ipython:: python
Expand Down
2 changes: 1 addition & 1 deletion doc/source/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Wes McKinney is the Benevolent Dictator for Life (BDFL).
Development Team
-----------------

The list of the Core Team members and more detailed information can be found on the `people’s page <https://github.com/pandas-dev/pandas-governance/blob/master/people.md>`__ of the governance repo.
The list of the Core Team members and more detailed information can be found on the `people’s page <https://github.com/pandas-dev/pandas-governance/blob/master/people.md>`__ of the governance repo.


Institutional Partners
Expand Down
32 changes: 16 additions & 16 deletions doc/source/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2043,7 +2043,7 @@ Bug Fixes
- Fixed missing arg validation in get_options_data (:issue:`6105`)
- Bug in assignment with duplicate columns in a frame where the locations
are a slice (e.g. next to each other) (:issue:`6120`)
- Bug in propogating _ref_locs during construction of a DataFrame with dups
- Bug in propagating _ref_locs during construction of a DataFrame with dups
index/columns (:issue:`6121`)
- Bug in ``DataFrame.apply`` when using mixed datelike reductions (:issue:`6125`)
- Bug in ``DataFrame.append`` when appending a row with different columns (:issue:`6129`)
Expand All @@ -2056,7 +2056,7 @@ Bug Fixes
- Bug in ``HDFStore`` on appending a dataframe with multi-indexed columns to
an existing table (:issue:`6167`)
- Consistency with dtypes in setting an empty DataFrame (:issue:`6171`)
- Bug in selecting on a multi-index ``HDFStore`` even in the presence of under
- Bug in selecting on a multi-index ``HDFStore`` even in the presence of under
specified column spec (:issue:`6169`)
- Bug in ``nanops.var`` with ``ddof=1`` and 1 elements would sometimes return ``inf``
rather than ``nan`` on some platforms (:issue:`6136`)
Expand Down Expand Up @@ -2437,7 +2437,7 @@ API Changes
- The refactoring involving``Series`` deriving from ``NDFrame`` breaks ``rpy2<=2.3.8``. an Issue
has been opened against rpy2 and a workaround is detailed in :issue:`5698`. Thanks @JanSchulz.
- ``Series.argmin`` and ``Series.argmax`` are now aliased to ``Series.idxmin`` and ``Series.idxmax``.
These return the *index* of the min or max element respectively. Prior to 0.13.0 these would return
These return the *index* of the min or max element respectively. Prior to 0.13.0 these would return
the position of the min / max element (:issue:`6214`)

Internal Refactoring
Expand Down Expand Up @@ -3097,7 +3097,7 @@ Bug Fixes
- Fixed bug where a time-series was being selected in preference to an actual column name
in a frame (:issue:`3594`)
- Make secondary_y work properly for bar plots (:issue:`3598`)
- Fix modulo and integer division on Series,DataFrames to act similary to ``float`` dtypes to return
- Fix modulo and integer division on Series,DataFrames to act similarly to ``float`` dtypes to return
``np.nan`` or ``np.inf`` as appropriate (:issue:`3590`)
- Fix incorrect dtype on groupby with ``as_index=False`` (:issue:`3610`)
- Fix ``read_csv/read_excel`` to correctly encode identical na_values, e.g. ``na_values=[-999.0,-999]``
Expand Down Expand Up @@ -3400,11 +3400,11 @@ Bug Fixes
- Fixed bug in reshape if not passed correct input, now raises TypeError (:issue:`2719`)
- Fixed a bug where Series ctor did not respect ordering if OrderedDict passed in (:issue:`3282`)
- Fix NameError issue on RESO_US (:issue:`2787`)
- Allow selection in an *unordered* timeseries to work similary
- Allow selection in an *unordered* timeseries to work similarly
to an *ordered* timeseries (:issue:`2437`).
- Fix implemented ``.xs`` when called with ``axes=1`` and a level parameter (:issue:`2903`)
- Timestamp now supports the class method fromordinal similar to datetimes (:issue:`3042`)
- Fix issue with indexing a series with a boolean key and specifiying a 1-len list on the rhs (:issue:`2745`)
- Fix issue with indexing a series with a boolean key and specifying a 1-len list on the rhs (:issue:`2745`)
or a list on the rhs (:issue:`3235`)
- Fixed bug in groupby apply when kernel generate list of arrays having unequal len (:issue:`1738`)
- fixed handling of rolling_corr with center=True which could produce corr>1 (:issue:`3155`)
Expand Down Expand Up @@ -3555,7 +3555,7 @@ Bug Fixes
- Upconvert datetime + datetime64 values when concatenating frames (:issue:`2624`)
- Raise a more helpful error message in merge operations when one DataFrame
has duplicate columns (:issue:`2649`)
- Fix partial date parsing issue occuring only when code is run at EOM
- Fix partial date parsing issue occurring only when code is run at EOM
(:issue:`2618`)
- Prevent MemoryError when using counting sort in sortlevel with
high-cardinality MultiIndex objects (:issue:`2684`)
Expand Down Expand Up @@ -3973,7 +3973,7 @@ Bug Fixes
- Don't lose tzinfo when passing DatetimeIndex as DataFrame column (:issue:`1682`)
- Fix tz conversion with time zones that haven't had any DST transitions since
first date in the array (:issue:`1673`)
- Fix field access with UTC->local conversion on unsorted arrays (:issue:`1756`)
- Fix field access with UTC->local conversion on unsorted arrays (:issue:`1756`)
- Fix isnull handling of array-like (list) inputs (:issue:`1755`)
- Fix regression in handling of Series in Series constructor (:issue:`1671`)
- Fix comparison of Int64Index with DatetimeIndex (:issue:`1681`)
Expand Down Expand Up @@ -4525,7 +4525,7 @@ Bug Fixes
- Fix na-filling handling in mixed-type DataFrame (:issue:`910`)
- Fix to DataFrame.set_value with non-existant row/col (:issue:`911`)
- Fix malformed block in groupby when excluding nuisance columns (:issue:`916`)
- Fix inconsistant NA handling in dtype=object arrays (:issue:`925`)
- Fix inconsistent NA handling in dtype=object arrays (:issue:`925`)
- Fix missing center-of-mass computation in ewmcov (:issue:`862`)
- Don't raise exception when opening read-only HDF5 file (:issue:`847`)
- Fix possible out-of-bounds memory access in 0-length Series (:issue:`917`)
Expand Down Expand Up @@ -5395,9 +5395,9 @@ pandas 0.4.3

**Release date:** 10/9/2011

is is largely a bugfix release from 0.4.2 but also includes a handful of new
d enhanced features. Also, pandas can now be installed and used on Python 3
hanks Thomas Kluyver!).
This is largely a bugfix release from 0.4.2 but also includes a handful of new
and enhanced features. Also, pandas can now be installed and used on Python 3
(thanks Thomas Kluyver!).

New Features
~~~~~~~~~~~~
Expand Down Expand Up @@ -5460,9 +5460,9 @@ pandas 0.4.2

**Release date:** 10/3/2011

is is a performance optimization release with several bug fixes. The new
t64Index and new merging / joining Cython code and related Python
frastructure are the main new additions
This is a performance optimization release with several bug fixes. The new
Int64Index and new merging / joining Cython code and related Python
infrastructure are the main new additions

New Features
~~~~~~~~~~~~
Expand Down Expand Up @@ -5537,7 +5537,7 @@ pandas 0.4.1

**Release date:** 9/25/2011

is is primarily a bug fix release but includes some new features and
This is primarily a bug fix release but includes some new features and
improvements

New Features
Expand Down
2 changes: 1 addition & 1 deletion doc/source/style.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
"Both `Styler.apply`, and `Styler.applymap` accept a `subset` keyword.\n",
"This allows you to apply styles to specific rows or columns, without having to code that logic into your `style` function.\n",
"\n",
"The value passed to `subset` behaves simlar to slicing a DataFrame.\n",
"The value passed to `subset` behaves similar to slicing a DataFrame.\n",
"\n",
"- A scalar is treated as a column label\n",
"- A list (or series or numpy array)\n",
Expand Down
4 changes: 2 additions & 2 deletions doc/source/timeseries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ We can instead only resample those groups where we have points as follows:
Aggregation
~~~~~~~~~~~

Similar to the :ref:`aggregating API <basics.aggregate>`, :ref:`groupby API <groupby.aggregate>`, and the :ref:`window functions API <stats.aggregate>`,
Similar to the :ref:`aggregating API <basics.aggregate>`, :ref:`groupby API <groupby.aggregate>`, and the :ref:`window functions API <stats.aggregate>`,
a ``Resampler`` can be selectively resampled.

Resampling a ``DataFrame``, the default will be to act on all columns with the same function.
Expand Down Expand Up @@ -2108,7 +2108,7 @@ tz-aware data to another time zone:

It is incorrect to pass a timezone directly into the ``datetime.datetime`` constructor (e.g.,
``datetime.datetime(2011, 1, 1, tz=timezone('US/Eastern'))``. Instead, the datetime
needs to be localized using the the localize method on the timezone.
needs to be localized using the localize method on the timezone.

Under the hood, all timestamps are stored in UTC. Scalar values from a
``DatetimeIndex`` with a time zone will have their fields (day, hour, minute)
Expand Down
Loading