Skip to content

Commit ad043d1

Browse files
luzpazjreback
authored andcommitted
Misc. Typo fixes (pandas-dev#18966)
1 parent 58e8ee2 commit ad043d1

File tree

157 files changed

+322
-320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+322
-320
lines changed

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ matrix:
1111
environment:
1212
global:
1313
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
14-
# /E:ON and /V:ON options are not enabled in the batch script intepreter
14+
# /E:ON and /V:ON options are not enabled in the batch script interpreter
1515
# See: http://stackoverflow.com/a/13751649/163740
1616
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci\\run_with_env.cmd"
1717
clone_folder: C:\projects\pandas

asv_bench/benchmarks/frame_ctor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
try:
55
from pandas.tseries.offsets import Nano, Hour
66
except ImportError:
7-
# For compatability with older versions
7+
# For compatibility with older versions
88
from pandas.core.datetools import * # noqa
99

1010
from .pandas_vb_common import setup # noqa

asv_bench/benchmarks/pandas_vb_common.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
np.float64, np.int16, np.int8, np.uint16, np.uint8]
1919
datetime_dtypes = [np.datetime64, np.timedelta64]
2020

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

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

46-
# Compatability import for lib
46+
# Compatibility import for lib
4747
for imp in ['pandas._libs.lib', 'pandas.lib', 'pandas_tseries']:
4848
try:
4949
lib = import_module(imp)

doc/source/_static/banklist.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta charset="UTF-8">
88
<!-- Unicode character encoding -->
99
<meta http-equiv="X-UA-Compatible" content="IE=edge">
10-
<!-- Turns off IE Compatiblity Mode -->
10+
<!-- Turns off IE Compatibility Mode -->
1111
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
1212
<!-- Makes it so phones don't auto zoom out. -->
1313
<meta name="author" content="DRR">
@@ -4849,7 +4849,7 @@ <h1 class="page_title">Failed Bank List</h1>
48494849
<ul>
48504850
<li><a href="/about/freedom/" title="Freedom of Information Act (FOIA) Service Center">Freedom of Information Act (FOIA) Service Center</a></li>
48514851
<li><a href="/open/" title="FDIC Open Government Webpage">FDIC Open Government Webpage</a></li>
4852-
<li><a href="/about/diversity/nofear/" title="No FEAR Act Data">No FEAR Act Data</a></li>
4852+
<li><a href="/about/diversity/nofear/" title="No FEAR Act Data">No FEAR Act Data</a></li>
48534853
</ul>
48544854
</div>
48554855
<div id="responsive_footer-small">

doc/source/api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ methods. In general, all classes and functions exposed in the top-level
1010
``pandas.*`` namespace are regarded as public.
1111

1212
Further some of the subpackages are public, including ``pandas.errors``,
13-
``pandas.plotting``, and ``pandas.testing``. Certain functions in the the
13+
``pandas.plotting``, and ``pandas.testing``. Certain functions in the
1414
``pandas.io`` and ``pandas.tseries`` submodules are public as well (those
1515
mentioned in the documentation). Further, the ``pandas.api.types`` subpackage
1616
holds some public functions related to data types in pandas.

doc/source/basics.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ Mixed Dtypes
947947
++++++++++++
948948

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

952952
.. ipython:: python
953953

doc/source/computation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ These are created from methods on ``Series`` and ``DataFrame``.
247247
r = s.rolling(window=60)
248248
r
249249
250-
These object provide tab-completion of the avaible methods and properties.
250+
These object provide tab-completion of the available methods and properties.
251251

252252
.. code-block:: ipython
253253

doc/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@
380380
'import pandas as pd',
381381
# This ensures correct rendering on system with console encoding != utf8
382382
# (windows). It forces pandas to encode its output reprs using utf8
383-
# whereever the docs are built. The docs' target is the browser, not
383+
# wherever the docs are built. The docs' target is the browser, not
384384
# the console, so this is fine.
385385
'pd.options.display.encoding="utf8"'
386386
]

doc/source/contributing.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,16 @@ to build the documentation locally before pushing your changes.
124124

125125
.. _contributiong.dev_c:
126126

127-
Installing a C Complier
127+
Installing a C Compiler
128128
~~~~~~~~~~~~~~~~~~~~~~~
129129

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

138138
For Windows developers, the following links may be helpful.
139139

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

154-
Now that you have a C complier, create an isolated pandas development
154+
Now that you have a C compiler, create an isolated pandas development
155155
environment:
156156

157157
- Install either `Anaconda <https://www.anaconda.com/download/>`_ or `miniconda

doc/source/developer.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ where ``KeyValue`` is
4040
}
4141
4242
So that a ``pandas.DataFrame`` can be faithfully reconstructed, we store a
43-
``pandas`` metadata key in the ``FileMetaData`` with the the value stored as :
43+
``pandas`` metadata key in the ``FileMetaData`` with the value stored as :
4444

4545
.. code-block:: text
4646

doc/source/dsintro.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ derived from existing columns.
470470
.head())
471471
472472
In the example above, we inserted a precomputed value. We can also pass in
473-
a function of one argument to be evalutated on the DataFrame being assigned to.
473+
a function of one argument to be evaluated on the DataFrame being assigned to.
474474

475475
.. ipython:: python
476476
@@ -957,7 +957,7 @@ pandas to focus on these areas exclusively.
957957

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

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

doc/source/enhancingperf.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Using ndarray
173173

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

178178
.. note::
179179

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

579579
.. warning::
580580

581-
For backwards compatability, ``inplace`` defaults to ``True`` if not
581+
For backwards compatibility, ``inplace`` defaults to ``True`` if not
582582
specified. This will change in a future version of pandas - if your
583583
code depends on an inplace assignment you should update to explicitly
584584
set ``inplace=True``

doc/source/indexing.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ Indexing with list with missing labels is Deprecated
651651

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

656656
For example.
657657

@@ -724,7 +724,7 @@ Having a duplicated index will raise for a ``.reindex()``:
724724
In [17]: s.reindex(labels)
725725
ValueError: cannot reindex from a duplicate axis
726726
727-
Generally, you can interesect the desired labels with the current
727+
Generally, you can intersect the desired labels with the current
728728
axis, and then reindex.
729729

730730
.. ipython:: python

doc/source/install.rst

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

doc/source/io.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ The ``thousands`` keyword allows integers to be parsed correctly
10481048
NA Values
10491049
'''''''''
10501050

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

41544154
.. warning::
41554155

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

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

doc/source/options.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ lines are replaced by an ellipsis.
164164
df
165165
pd.reset_option('max_rows')
166166
167-
``display.expand_frame_repr`` allows for the the representation of
167+
``display.expand_frame_repr`` allows for the representation of
168168
dataframes to stretch across pages, wrapped over the full column vs row-wise.
169169

170170
.. ipython:: python

doc/source/overview.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Wes McKinney is the Benevolent Dictator for Life (BDFL).
109109
Development Team
110110
-----------------
111111

112-
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.
112+
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.
113113

114114

115115
Institutional Partners

doc/source/release.rst

+16-16
Original file line numberDiff line numberDiff line change
@@ -2043,7 +2043,7 @@ Bug Fixes
20432043
- Fixed missing arg validation in get_options_data (:issue:`6105`)
20442044
- Bug in assignment with duplicate columns in a frame where the locations
20452045
are a slice (e.g. next to each other) (:issue:`6120`)
2046-
- Bug in propogating _ref_locs during construction of a DataFrame with dups
2046+
- Bug in propagating _ref_locs during construction of a DataFrame with dups
20472047
index/columns (:issue:`6121`)
20482048
- Bug in ``DataFrame.apply`` when using mixed datelike reductions (:issue:`6125`)
20492049
- Bug in ``DataFrame.append`` when appending a row with different columns (:issue:`6129`)
@@ -2056,7 +2056,7 @@ Bug Fixes
20562056
- Bug in ``HDFStore`` on appending a dataframe with multi-indexed columns to
20572057
an existing table (:issue:`6167`)
20582058
- Consistency with dtypes in setting an empty DataFrame (:issue:`6171`)
2059-
- Bug in selecting on a multi-index ``HDFStore`` even in the presence of under
2059+
- Bug in selecting on a multi-index ``HDFStore`` even in the presence of under
20602060
specified column spec (:issue:`6169`)
20612061
- Bug in ``nanops.var`` with ``ddof=1`` and 1 elements would sometimes return ``inf``
20622062
rather than ``nan`` on some platforms (:issue:`6136`)
@@ -2437,7 +2437,7 @@ API Changes
24372437
- The refactoring involving``Series`` deriving from ``NDFrame`` breaks ``rpy2<=2.3.8``. an Issue
24382438
has been opened against rpy2 and a workaround is detailed in :issue:`5698`. Thanks @JanSchulz.
24392439
- ``Series.argmin`` and ``Series.argmax`` are now aliased to ``Series.idxmin`` and ``Series.idxmax``.
2440-
These return the *index* of the min or max element respectively. Prior to 0.13.0 these would return
2440+
These return the *index* of the min or max element respectively. Prior to 0.13.0 these would return
24412441
the position of the min / max element (:issue:`6214`)
24422442

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

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

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

54025402
New Features
54035403
~~~~~~~~~~~~
@@ -5460,9 +5460,9 @@ pandas 0.4.2
54605460

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

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

54675467
New Features
54685468
~~~~~~~~~~~~
@@ -5537,7 +5537,7 @@ pandas 0.4.1
55375537

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

5540-
is is primarily a bug fix release but includes some new features and
5540+
This is primarily a bug fix release but includes some new features and
55415541
improvements
55425542

55435543
New Features

doc/source/style.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
"Both `Styler.apply`, and `Styler.applymap` accept a `subset` keyword.\n",
319319
"This allows you to apply styles to specific rows or columns, without having to code that logic into your `style` function.\n",
320320
"\n",
321-
"The value passed to `subset` behaves simlar to slicing a DataFrame.\n",
321+
"The value passed to `subset` behaves similar to slicing a DataFrame.\n",
322322
"\n",
323323
"- A scalar is treated as a column label\n",
324324
"- A list (or series or numpy array)\n",

doc/source/timeseries.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ We can instead only resample those groups where we have points as follows:
15801580
Aggregation
15811581
~~~~~~~~~~~
15821582

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

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

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

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

0 commit comments

Comments
 (0)