diff --git a/doc/source/mapping.rst b/doc/source/mapping.rst index 9a76482..67b8c49 100644 --- a/doc/source/mapping.rst +++ b/doc/source/mapping.rst @@ -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). diff --git a/geopandas/tests/test_geodataframe.py b/geopandas/tests/test_geodataframe.py index 70e3b30..c0e2182 100644 --- a/geopandas/tests/test_geodataframe.py +++ b/geopandas/tests/test_geodataframe.py @@ -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): diff --git a/geopandas/tests/test_overlay.py b/geopandas/tests/test_overlay.py index 4c4823d..b952a69 100644 --- a/geopandas/tests/test_overlay.py +++ b/geopandas/tests/test_overlay.py @@ -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") diff --git a/geopandas/tests/test_plotting.py b/geopandas/tests/test_plotting.py index 98a824a..894d5dd 100644 --- a/geopandas/tests/test_plotting.py +++ b/geopandas/tests/test_plotting.py @@ -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 diff --git a/geopandas/tools/overlay.py b/geopandas/tools/overlay.py index 4ca1fd2..9decfba 100644 --- a/geopandas/tools/overlay.py +++ b/geopandas/tools/overlay.py @@ -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)))