Skip to content

Commit 6b08ccb

Browse files
committed
docs: fix a few simple typos
There are small typos in: - doc/expert-model-specification.rst - doc/quickstart.rst - patsy/splines.py - patsy/state.py - patsy/util.py Fixes: - Should read `heterogeneous` rather than `heterogenous`. - Should read `specified` rather than `specificed`. - Should read `representation` rather than `represention`. - Should read `concatenation` rather than `concatentation`. Closes pydata#172
1 parent 4c613d0 commit 6b08ccb

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

doc/expert-model-specification.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ things are.)
9595
dmatrix(desc, data)
9696
9797
Notice that no intercept term is included. Implicit intercepts are a
98-
feature of the formula parser, not the underlying represention. If you
98+
feature of the formula parser, not the underlying representation. If you
9999
want an intercept, include the constant :const:`INTERCEPT` in your
100100
list of terms (which is just sugar for ``Term([])``).
101101

doc/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ standard representation, all this work happens *after* any
166166
transformations you perform as part of your formula. So, for example,
167167
if your data is in the form of numpy arrays, "+" will perform
168168
element-wise addition, but if it is in standard Python lists, it will
169-
perform concatentation:
169+
perform concatenation:
170170

171171
.. ipython:: python
172172

patsy/splines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _eval_bspline_basis(x, knots, degree):
4141
"to handle them. (Patches accepted!)")
4242
# Thanks to Charles Harris for explaining splev. It's not well
4343
# documented, but basically it computes an arbitrary b-spline basis
44-
# given knots and degree on some specificed points (or derivatives
44+
# given knots and degree on some specified points (or derivatives
4545
# thereof, but we don't use that functionality), and then returns some
4646
# linear combination of these basis functions. To get out the basis
4747
# functions themselves, we use linear combinations like [1, 0, 0], [0,

patsy/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def memorize_finish(self):
105105
def transform(self, x):
106106
x = asarray_or_pandas(x)
107107
# This doesn't copy data unless our input is a DataFrame that has
108-
# heterogenous types. And in that case we're going to be munging the
108+
# heterogeneous types. And in that case we're going to be munging the
109109
# types anyway, so copying isn't a big deal.
110110
x_arr = np.asarray(x)
111111
if safe_issubdtype(x_arr.dtype, np.integer):

patsy/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ class MyClass(object):
480480
assert printer.getvalue() == "MyClass('a', 1, foo='bar', asdf='asdf')"
481481

482482
# In Python 3, objects of different types are not generally comparable, so a
483-
# list of heterogenous types cannot be sorted. This implements a Python 2
483+
# list of heterogeneous types cannot be sorted. This implements a Python 2
484484
# style comparison for arbitrary types. (It works on Python 2 too, but just
485485
# gives you the built-in ordering.) To understand why this is tricky, consider
486486
# this example:

0 commit comments

Comments
 (0)