134f4e4dd4
TST: speedup hexbin plot with bigger gridsize ( #2097 )
...
* TST: speedup hexbin plot with bigger gridsize
* reduce comment size
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
Co-authored-by: TLouf <loufthomas@gmail.com >
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-09-03 11:31:26 +01:00
Adrian Garcia Badaracco and Brendan Ward
8f08539b3f
REF/MAINT: deprecate sjoin op param in favor of predicate ( #1626 )
...
* deprecate op param
* remove line
* rename op -> predicate in docs
* Test for collision and unknown kwargs
* Update geopandas/tools/sjoin.py
Co-authored-by: Brendan Ward <bcward@astutespruce.com >
* Update geopandas/tools/sjoin.py
Co-authored-by: Brendan Ward <bcward@astutespruce.com >
* PR feedback
* fix typo
Co-authored-by: Brendan Ward <bcward@astutespruce.com >
2021-09-02 21:27:12 +01:00
Joris Van den Bossche and Martin Fleischmann
9f5413f8e9
TST/BUG: deal with various warnings from the tests ( #2075 )
...
* TST: deal with various warnings from the tests
* Update geopandas/tests/test_plotting.py
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* Update geopandas/tests/test_plotting.py
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* add check_less_precise=True back
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-08-25 23:14:12 +01:00
Joris Van den Bossche
0ac33b8c31
BUG: GeoSeries constructor should return Series for empty array with dtype when possible (fix GeoSeries.isna for empty Series) ( #2073 )
2021-08-24 22:42:15 +02:00
Joris Van den Bossche
bf8429af12
COMPAT: suppress numpy1.21 deprecation warnings for Shapely < 1.8 ( #2072 )
2021-08-24 21:52:17 +02:00
Adrian Garcia Badaracco and Martin Fleischmann
7f486db671
BUG: Use suffixes in sjoin's how==right branch ( #2065 )
...
* Use suffixes in how==right
* add tests
* slightly nicer formatting
* slightly nicer formatting
* add ,
* Update test_sjoin.py
* Update test_sjoin.py
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-08-23 22:08:14 +01:00
Joris Van den Bossche
befb2e88da
DEPR: actually deprecate cascaded_union in favor of unary_union ( #2074 )
2021-08-23 20:41:38 +01:00
Ariel Núñez
d006fad416
DOC: postgres/postgresql protocol change in docs ( #2082 )
2021-08-23 17:36:43 +01:00
Martin Fleischmann
632149a9ad
REF: replace _mapclassify_choro with new API ( #1737 )
2021-08-23 16:41:39 +02:00
Matt Richards
82b45f033a
TST: not using appveyor, perhaps these work on GH actions ( #2078 )
2021-08-23 13:42:17 +01:00
Matt Richards and Joris Van den Bossche
83ab5c6389
ENH: support Series.value_counts for geometry dtype (add value_counts to GeometryArray) ( #2047 )
...
* TST: updated tests for value_counts
* BUG: fix GH1738
* BUG: replace fillna(None) in value counts
* update extension array tests
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com >
2021-08-23 09:17:13 +01:00
Martin Fleischmann
f3d8596727
REF: remove forgotten python 2 compat code ( #2020 )
2021-08-22 20:48:30 +02:00
danielpallen
d07003dfd2
DOC: modify read_file bbox example so that bbox is shaped like a box ( #2069 )
2021-08-22 20:27:07 +02:00
Martin Fleischmann
4e2c8343e5
BUG: fix colorbar issue under matplotlib 3.4.3 ( #2066 )
2021-08-21 09:19:24 +02:00
Matt Richards
4536b9203b
BUG: fix pd.concat(... axis=1) causing duplicate geometry column names ( #2046 )
...
* TST: add failing tests for GH1230
* BUG: fix geom_col ="geometry" case of GH1230
* TST: expand concat tests
* BUG: fix bug in __finalize__ where df.geometry was a gdf after concat
* TST: make duplicate geom col check clearer
* BUG: check level shape in set_geometry to keep pygeos/shapely errors consistent
* BUG: address PR comments
* TST: refactor tests to suggested locations
* CLN: address review comments
2021-08-09 11:21:51 +01:00
standakozak
8547d7fff6
DOC: Editing docstrings of spatial predicates ( #2048 )
2021-08-08 11:14:36 +01:00
Zero
fe920278ae
DOC: Remove duplicated intersphinx_mapping key ( #2051 )
2021-08-07 09:38:00 +02:00
Martin Fleischmann
9d52e84262
STY: fix flake8 ( #2054 )
2021-08-06 16:32:24 +01:00
Qiusheng Wu
8dd2b9f62c
Fixed typos ( #2050 )
2021-08-06 09:06:01 +01:00
Matthew Law
64598b6f0d
DOC: fix typo in a URL ( #2043 )
2021-07-27 14:05:15 +01:00
Matthew Law
bace23c974
DOC: Fixed link to notebook with more examples in nbviewer ( #2042 )
2021-07-27 12:12:42 +01:00
Alison Hopkin and Martin Fleischmann
5e6958e675
DOC: Rasterio sample example ( #1998 )
...
* add rasterio sample example
* add example data
* Update doc/source/gallery/geopandas_rasterio_sample.ipynb
* clean outputs, add thumbnail
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-07-24 17:23:44 +01:00
Mike Taves
b4f5ce5be7
REF: line_interpolate_point and line_locate_point now use normalized ( #2014 )
2021-07-24 11:46:08 +01:00
Mike Taves and Martin Fleischmann
2394bf052a
MAINT: use super() as described by PEP 3135 ( #1885 )
...
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-07-24 11:11:36 +01:00
Martin Fleischmann
3bf2d27ca9
DOC: override kernelspec when executing notebooks ( #1938 )
...
* DOC: override kernelspec
* revert kernelspec used for test
2021-07-24 10:42:44 +01:00
Ray Bell
dbcf4ab7af
DOC: pyarrow intersphinx mapping ( #2016 )
2021-07-24 09:32:39 +01:00
standakozak and Martin Fleischmann
68ee8b929c
DOC: Example of matplotlib-scalebar library usage ( #1994 )
...
* Adding an example of matplotlib-scalebar
* Updating version number of matplotlib-scalebar library
* DOC: Resolving comments for matplotlib-scalebar example
* formatting, icon
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-07-23 23:37:23 +01:00
Martin Fleischmann
7997837abd
REF/TST: replace GeocodeFarm with Photon as a geocoding default ( #2007 )
...
* TST: replace GeocodeFarm with Photon
* change default in geocoding and docs
2021-07-15 09:18:17 +01:00
Joris Van den Bossche
77a041ffaf
Revert "TST: adapt colorbar tests to matplotlib 3.5 ( #2000 )" ( #2001 )
...
This reverts commit ef416188f4 .
2021-07-08 09:22:48 +01:00
TLouf
ef416188f4
TST: adapt colorbar tests to matplotlib 3.5 ( #2000 )
2021-07-07 23:36:47 +01:00
Martin Fleischmann
8c1e3531b8
DEP: deprecate python 3.6 and pandas 0.24 ( #1877 )
2021-07-06 08:30:33 +02:00
Zero and Joris Van den Bossche
fc6136480c
TST: don't use to_crs on GeometryArray without crs ( #1993 )
...
* TST, BUG: GeometryArray.crs is empty, can't transform another crs
fix https://github.com/geopandas/geopandas/runs/2985725996?check_suite_focus=true#step:5:2713
* TST, BUG: use `Geoseries.set_crs` replace `GeometryArray.to_crs`
* simplify a bit
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com >
2021-07-05 21:36:55 +01:00
Zero
aebf58450a
ENH: Gather all doc decorator in one ( #1954 )
...
port from [pandas](https://github.com/pandas-dev/pandas/blob/6925fd04690c94dc1fc03db1e1eddac8d479bef6/pandas/util/_decorators.py#L348-L400 )
2021-07-05 21:01:16 +02:00
Martin Fleischmann
72583fd408
TST: adapt GPKG tests with undefined CRS ( #1986 )
2021-07-02 10:43:12 +02:00
Joris Van den Bossche
5790c44922
CI: fix activation of the conda environments + switch to conda-incubator/setup-miniconda ( #1987 )
2021-07-01 14:52:29 +02:00
Matthew Law
f50e2dd47b
DOC: fix misspelling of Plate Carrée ( #1981 )
2021-06-29 11:53:27 +01:00
Martin Fleischmann
ae3f8216e2
DOC: update RTD env ( #1979 )
...
* DOC: unpin RTD env
* fix for sphinx 4.0
* pin new versions
* typo
2021-06-27 15:47:21 +01:00
m-richards
cb88dd4a91
BUG: GeoDataFrame CRS loss during __setitem__ ( #1963 )
2021-06-08 22:05:31 +02:00
Martin Fleischmann
00e56daaba
DOC: fix docstring examples ( #1961 )
2021-06-03 07:58:10 +02:00
Martin Fleischmann
863afe97b3
TST: fix proj4strings test for PROJ 8.0.1 ( #1958 )
2021-06-02 21:57:59 +02:00
standakozak and Martin Fleischmann
c6aedbae2d
DOC: Editing the docstring of GeoSeries.simplify ( #1942 )
...
* Editing the docstring of GeoSeries.simplify
* Stylistic change in geoseries.simplify docstring
* More clarification in simplify docstring
* Minor changes in simplify docstring
* remove trailing whitespace
* Removing redundant information from simplify docstring
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-05-30 11:38:25 +01:00
Joris Van den Bossche
fc60ece191
PERF: avoid calculating total_bounds in .cx indexing when not needed ( #1951 )
2021-05-28 16:35:35 +01:00
Daniel Mesejo-León
c404bbbf77
BUG: fix GeoDataFrame.explode with MultiIndex ( #1937 ) ( #1945 )
...
* BUG: fix GeoDataFrame.explode with MultiIndex (#1937 )
* use simple function to flatten values
2021-05-28 16:31:52 +01:00
b154d137da
ENH: Add bounds checks to sjoin, overlay ( #1851 )
...
* ENH: Add bounds checks to sjoin, overlay (#1708 )
* fix sjoin and add test that checks for the bug.
* add test in overlay to check for duplicated columns
* linting
* fix overlay and test so it does not return duplicated columns
* Update geopandas/tools/overlay.py
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* remove unnecessary param
Co-authored-by: ImanolUr <imanol@live-eo.com >
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-05-28 16:27:50 +01:00
Andreas Eliasson
521c72d6f1
DOC: revise plotting polygons with folium gallery example ( #1941 )
2021-05-28 12:49:26 +01:00
Andreas Eliasson
813ad3dc1a
DOC: revise plotting with folium example ( #1916 )
...
* DOC: revise plotting with folium example
* DOC: edit example description
* Revert "DOC: revise plotting with folium example"
This reverts commit 58ad279dbc9d0030550566b27035b5e783a9291f.
* DOC: revise plotting with folium example
This commit also include feedback actions.
2021-05-28 11:59:19 +01:00
Daniel Mesejo-León
8c87fd507b
BUG: preserve attrs in Dataframe.explode ( #1875 ) ( #1935 )
2021-05-28 11:25:24 +01:00
Murat Can Üste and Martin Fleischmann
e2c5b0d978
DOC: Relevant API links for intersphinx mapping ( #1931 )
...
* DOC: added API links to intersphinx mapping
* DOC: updated mergingdata.rst links
* DOC: updated aggregation_with_dissolve.rst links
* DOC: updated data_structures.rst links
* DOC: updated geocoding.rst links
* DOC: updated geometric_manipulations.rst links
* DOC: updated indexing.rst links
* DOC: updated io.rst links
* DOC: updated projections.rst links
* DOC: updated set_operations.rst links
* DOC: updated mapping.rst links
* DOC: updated missing_empty.rst links
* DOC: updated geoplot intersphinx links
* DOC: make 'unary_union' attr instead of method
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* DOC: remove link to GeoDataFrame.geometry
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* DOC: convert pandas indexers to attrs instead of methods
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* DOC: convert indexer 'cx' to attr instead of method
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* DOC: refer GeoSeries.buffer instead of shapely buffer
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* DOC: make 'unary_union' attr instead of method on missing_empty.rst
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* DOC: refer to DataFrame.merge instead of pandas.merge
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* DOC: link pyproj.CRS
* DOC: changed API links to 'stable' from 'latest'
* DOC: fixed separator length
* DOC: uppercase CRS in pyproj.crs
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-05-28 11:16:54 +01:00
Brendan Ward
dd2ed8efbf
Increment pygeos version ( #1948 )
2021-05-24 19:47:21 +01:00
James Myatt
a26bde2b78
DOC: Clarify bbox input to read_file ( #1940 )
2021-05-12 09:40:37 +02:00