diff --git a/geopandas/base.py b/geopandas/base.py index abe3c85..6955219 100644 --- a/geopandas/base.py +++ b/geopandas/base.py @@ -393,7 +393,7 @@ GeometryCollection features that have a z-component. Notes - ------ + ----- Every operation in GeoPandas is planar, i.e. the potential third dimension is not taken into account. @@ -627,7 +627,7 @@ GeometryCollection Applies to GeoSeries containing only Polygons. Returns - ---------- + ------- inner_rings: Series of List Inner rings of each polygon in the GeoSeries. @@ -2979,7 +2979,7 @@ GeometryCollection If False, the order of elements is preserved. Returns - ---------- + ------- spatial_relations: Series of strings The DE-9IM intersection matrices which describe the spatial relations of the other geometry. diff --git a/geopandas/geodataframe.py b/geopandas/geodataframe.py index d5be395..9b81697 100644 --- a/geopandas/geodataframe.py +++ b/geopandas/geodataframe.py @@ -1474,12 +1474,9 @@ individually so that features may have different properties ----- The extra arguments ``*args`` and keyword arguments ``**kwargs`` are passed to DataFrame.merge. - - Reference - --------- - https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas\ - .DataFrame.merge.html - + See https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas\ +.DataFrame.merge.html + for more details. """ result = DataFrame.merge(self, *args, **kwargs) geo_col = self._geometry_column_name @@ -2078,7 +2075,7 @@ individually so that features may have different properties Europe Austria AUT 416600.0 Notes - ------ + ----- Every operation in GeoPandas is planar, i.e. the potential third dimension is not taken into account. @@ -2345,7 +2342,7 @@ countries_w_city_data[countries_w_city_data["name_left"] == "Italy"] overlay : equivalent top-level function Notes - ------ + ----- Every operation in GeoPandas is planar, i.e. the potential third dimension is not taken into account. """ diff --git a/geopandas/plotting.py b/geopandas/plotting.py index bd2fcb3..961999a 100644 --- a/geopandas/plotting.py +++ b/geopandas/plotting.py @@ -527,20 +527,20 @@ def plot_dataframe( dataframe. Values are used to color the plot. Ignored if `color` is also set. kind: str - The kind of plots to produce: - - 'geo': Map (default) - Pandas Kinds - - 'line' : line plot - - 'bar' : vertical bar plot - - 'barh' : horizontal bar plot - - 'hist' : histogram - - 'box' : BoxPlot - - 'kde' : Kernel Density Estimation plot - - 'density' : same as 'kde' - - 'area' : area plot - - 'pie' : pie plot - - 'scatter' : scatter plot - - 'hexbin' : hexbin plot. + The kind of plots to produce. The default is to create a map ("geo"). + Other supported kinds of plots from pandas: + + - 'line' : line plot + - 'bar' : vertical bar plot + - 'barh' : horizontal bar plot + - 'hist' : histogram + - 'box' : BoxPlot + - 'kde' : Kernel Density Estimation plot + - 'density' : same as 'kde' + - 'area' : area plot + - 'pie' : pie plot + - 'scatter' : scatter plot + - 'hexbin' : hexbin plot. cmap : str (default None) The name of a colormap recognized by matplotlib. color : str, np.array, pd.Series (default None) diff --git a/geopandas/tools/hilbert_curve.py b/geopandas/tools/hilbert_curve.py index 69c6c42..4568dea 100644 --- a/geopandas/tools/hilbert_curve.py +++ b/geopandas/tools/hilbert_curve.py @@ -18,7 +18,7 @@ def _hilbert_distance(geoms, total_bounds=None, level=16): have coordinates in the range [0, 2^level - 1]). Returns - --------- + ------- np.ndarray Array containing distances along the Hilbert curve @@ -54,7 +54,7 @@ def _continuous_to_discrete_coords(bounds, level, total_bounds): total_bounds : Total bounds of geometries - array Returns - --------- + ------- Discrete two-dimensional numpy array Two-dimensional array Array of hilbert distances for each geom @@ -98,7 +98,7 @@ def _continuous_to_discrete(vals, val_range, n): n : Number of discrete values Returns - --------- + ------- One-dimensional array of discrete ints """ diff --git a/geopandas/tools/overlay.py b/geopandas/tools/overlay.py index ead7d81..674072b 100644 --- a/geopandas/tools/overlay.py +++ b/geopandas/tools/overlay.py @@ -227,7 +227,7 @@ def overlay(df1, df2, how="intersection", keep_geom_type=None, make_valid=True): GeoDataFrame.overlay : equivalent method Notes - ------ + ----- Every operation in GeoPandas is planar, i.e. the potential third dimension is not taken into account. """ diff --git a/geopandas/tools/sjoin.py b/geopandas/tools/sjoin.py index fae6443..fcb679a 100644 --- a/geopandas/tools/sjoin.py +++ b/geopandas/tools/sjoin.py @@ -91,7 +91,7 @@ stria AUT 416600.0 GeoDataFrame.sjoin : equivalent method Notes - ------ + ----- Every operation in GeoPandas is planar, i.e. the potential third dimension is not taken into account. """