Commit Graph
1450 Commits
Author SHA1 Message Date
TLouf fed13df9e5 PERF: MultiIndex creation in explode (#2110)
Go back to using `from_arrays `instead of `from_tuples` to create the
MultiIndex of the GeoSeries resulting from `explode`.
2021-09-24 20:35:28 +02:00
James McBride 8d4679f7ef PERF: Add new overlay benchmarks (#2118)
Motivated by the pretty serious performance regression on overlays
I accidentally introduced in #1582, and reported in #2089, here's a new
benchmark for overlays that makes the regression more apparent than the
existing overlay benchmarks.
2021-09-24 16:59:28 +01:00
Martin Fleischmann 8dbfb575c2 DOC: fix RTD builds (#2125) 2021-09-24 08:08:22 +02:00
Tom Augspurger 32e7cf35f0 ENH: Add storage_options to read_parquet (#2107) 2021-09-23 20:48:30 +02:00
Martin Fleischmannandsangarshanan b32288824f ENH: native interactive plotting via folium as explore() method (#1953)
Co-authored-by: sangarshanan <sangarshanan1998@gmail.com>
2021-09-23 17:43:30 +02:00
Adrian Garcia Badaracco f9866e4660 GHA: Use github.ref instead of github.ref_head in concurrency group (#2121) 2021-09-22 21:40:06 +01:00
Adrian Garcia Badaracco 48814c4306 GHA: cancel existing jobs when new commits are added (#2120) 2021-09-22 21:28:10 +01:00
Matt RichardsandMartin Fleischmann b67ba848a7 BUG: convert_dtypes() converts GeoDataFrame to DataFrame (#2115)
* TST: test documenting existing convert dtypes behaviour

* TST: fix tests, compare to proper reference case

* BUG: overload convert_dtypes to fix GH1870

* COMPAT: update tests to handle pandas 1.0 and 0.25

* DOC: update wording to suggested

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>

* CLN: simplify to *args and **kwargs following suggestion

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2021-09-20 09:45:38 +01:00
Andreas Eliasson 0fe01e899b DOC: Add doc style guide (#2114) 2021-09-19 14:33:38 +01:00
Joris Van den Bossche 9e0770b470 BUG: fix reading Parquet file without metadata (proper error message) (#2111) 2021-09-17 10:39:03 +02:00
Martin FleischmannandJoris Van den Bossche 8caa139cc1 TST: skip tests of in overlay symmetric_difference under pandas 1.3.3 (#2101)
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2021-09-16 10:55:38 +02:00
Alan D. SnowandMartin Fleischmann 9607d9c966 ENH: Automatically handle hex with shapely in from_wkb (#2106)
* ENH: Automatically handle hex with shapely wkb

* Update geopandas/tests/test_array.py

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2021-09-09 23:30:40 +01:00
Alan D. Snow 187287b2fa DOC: Add example using Fiona to re-project (#1596) 2021-09-06 21:35:36 +01:00
Joris Van den Bossche 5a22e84791 Compatibility with 1.8 deprecation warnings (.coords) (#2087) 2021-09-03 16:52:39 +01:00
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 BadaraccoandBrendan 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 BosscheandMartin 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 BadaraccoandMartin 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 RichardsandJoris 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 HopkinandMartin 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 TavesandMartin 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
standakozakandMartin 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
ZeroandJoris 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