Correct spelling mistakes. (#615)

This commit is contained in:
Edward Betts
2017-11-20 15:56:48 +01:00
committed by Joris Van den Bossche
parent 1da8f6279c
commit 74fa1368a3
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ The way color maps are scaled can also be manipulated with the ``scheme`` option
Maps with Layers
-----------------
There are two strategies for making a map with multiple layers -- one more succinct, and one that is a littel more flexible.
There are two strategies for making a map with multiple layers -- one more succinct, and one that is a little more flexible.
Before combining maps, however, remember to always ensure they share a common CRS (so they will align).
+1 -1
View File
@@ -578,7 +578,7 @@ class TestConstructor:
assert_index_equal(df.index, pd.Index([1, 2]))
assert df['A'].tolist() == [1, 2]
# one non-series -> lenght is not correct
# one non-series -> length is not correct
data = {"A": pd.Series(range(3)), "B": np.arange(3.0),
"geometry": GeoSeries([Point(x, x) for x in range(3)])}
with pytest.raises(ValueError):
+2 -2
View File
@@ -43,11 +43,11 @@ class TestDataFrame:
assert 'value1' in df.columns and 'Shape_Area' in df.columns
def test_union_no_index(self):
# explicitly ignore indicies
# explicitly ignore indices
dfB = overlay(self.polydf, self.polydf2, how="union", use_sindex=False)
assert dfB.shape == self.union_shape
# remove indicies from df
# remove indices from df
self.polydf._sindex = None
self.polydf2._sindex = None
dfC = overlay(self.polydf, self.polydf2, how="union")
+1 -1
View File
@@ -620,7 +620,7 @@ def _check_colors(N, actual_colors, expected_colors, alpha=None):
expected_colors : sequence of RGBA tuples
alpha : float (optional)
If set, this alpha transparency will be applied to the
`expected_colors`. (Any transparency on the `collecton` is assumed
`expected_colors`. (Any transparency on the `collection` is assumed
to be set in its own facecolor RGBA tuples.)
"""
import matplotlib.colors as colors
+1 -1
View File
@@ -174,5 +174,5 @@ def overlay(df1, df2, how, use_sindex=True):
out_series['geometry'] = newpoly
collection.append(out_series)
# Return geodataframe with new indicies
# Return geodataframe with new indices
return GeoDataFrame(collection, index=range(len(collection)))