Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Bump geopandas from 0.8.1 to 0.9.0 #89

Merged
merged 1 commit into from
Mar 3, 2021

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Mar 3, 2021

Bumps geopandas from 0.8.1 to 0.9.0.

Release notes

Sourced from geopandas's releases.

v0.9.0

GeoPandas 0.9.0 features a long list of new features, enhancements and bug fixes, see the full list below. In addition, there are many documentation improvements and a restyled and restructured website with a new logo (#1564, #1579, #1617, #1668, #1731, #1750, #1757, #1759).

New features and improvements:

  • The geopandas.read_file function now accepts more general file-like objects (e.g. fsspec open file objects). It will now also automatically recognize zipped files (#1535).
  • The GeoDataFrame.plot() method now provides access to the pandas plotting functionality for the non-geometry columns, either using the kind keyword or the accessor method (e.g. gdf.plot(kind="bar") or gdf.plot.bar()) (#1465).
  • New from_wkt(), from_wkb(), to_wkt(), to_wkb() methods for GeoSeries to construct a GeoSeries from geometries in WKT or WKB representation, or to convert a GeoSeries to a pandas Seriew with WKT or WKB values (#1710).
  • New GeoSeries.z attribute to access the z-coordinates of Point geometries (similar to the existing .x and .y attributes) (#1773).
  • The to_crs() method now handles missing values (#1618).
  • Support for pandas' new .attrs functionality (#1658).
  • The dissolve() method now allows dissolving by no column (by=None) to create a union of all geometries (single-row GeoDataFrame) (#1568).
  • New estimate_utm_crs() method on GeoSeries/GeoDataFrame to determine the UTM CRS based on the bounds (#1646).
  • GeoDataFrame.from_dict() now accepts geometry and crs keywords (#1619).
  • GeoDataFrame.to_postgis() and geopandas.read_postgis() now supports both sqlalchemy engine and connection objects (#1638).
  • The GeoDataFrame.explode() method now allows exploding based on a non-geometry column, using the pandas implementation (#1720).
  • Performance improvement in GeoDataFrame/GeoSeries.explode() when using the PyGEOS backend (#1693).
  • The binary operation and predicate methods (eg intersection(), intersects()) have a new align keyword which allows optionally not aligning on the index before performing the operation with align=False (#1668).
  • The GeoDataFrame.dissolve() method now supports all relevant keywords of groupby(), i.e. the level, sort, observed and dropna keywords (#1845).
  • The geopandas.overlay() function now accepts make_valid=False to skip the step to ensure the input geometries are valid using buffer(0) (#1802).
  • The GeoDataFrame.to_json() method gained a drop_id keyword to optionally not write the GeoDataFrame's index as the "id" field in the resulting JSON (#1637).
  • A new aspect keyword in the plotting methods to optionally allow retaining the original aspect (#1512)
  • A new interval keyword in the legend_kwds group of the plot() method to control the appearance of the legend labels when using a classification scheme (#1605).
  • The spatial index of a GeoSeries (accessed with the sindex attribute) is now stored on the underlying array. This ensures that the spatial index is preserved in more operations where possible, and that multiple geometry columns of a GeoDataFrame can each have a spatial index (#1444).
  • Addition of a has_sindex attribute on the GeoSeries/GeoDataFrame to check if a spatial index has already been initialized (#1627).
  • The geopandas.testing.assert_geoseries_equal() and assert_geodataframe_equal() testing utilities now have a normalize keyword (False by default) to normalize geometries before comparing for equality (#1826). Those functions now also give a more informative error message when failing (#1808).

Deprecations and compatibility notes:

  • The is_ring attribute currently returns True for Polygons. In the future, this will be False (#1631). In addition, start to check it for LineStrings and LinearRings (instead of always returning False).
  • The deprecated objects keyword in the intersection() method of the GeoDataFrame/GeoSeries.sindex spatial index object has been removed (#1444).

Bug fixes:

  • Fix regression in the plot() method raising an error with empty geometries (#1702, #1828).
  • Fix geopandas.overlay() to preserve geometries of the correct type which are nested within a GeometryCollection as a result of the overlay operation (#1582). In addition, a warning will now be raised if geometries of different type are dropped from the result (#1554).
  • Fix the repr of an empty GeoSeries to not show spurious warnings (#1673).
  • Fix the .crs for empty GeoDataFrames (#1560).
  • Fix geopandas.clip to preserve the correct geometry column name (#1566).
  • Fix bug in plot() method when using legend_kwds with multiple subplots (#1583)
  • Fix spurious warning with missing_kwds keyword of the plot() method when there are no areas with missing data (#1600).
  • Fix the plot() method to correctly align values passed to the column keyword as a pandas Series (#1670).
  • Fix bug in plotting MultiPoints when passing values to determine the color (#1694)
  • The rename_geometry() method now raises a more informative error message when a duplicate column name is used (#1602).
  • Fix explode() method to preserve the CRS (#1655)
  • Fix the GeoSeries.apply() method to again accept the convert_dtype keyword to be consistent with pandas (#1636).
  • Fix GeoDataFrame.apply() to preserve the CRS when possible (#1848).
  • Fix bug in containment test as geom in geoseries (#1753).
  • The shift() method of a GeoSeries/GeoDataFrame now preserves the CRS (#1744).
  • The PostGIS IO functionality now quotes table names to ensure it works with case-sensitive names (#1825).

... (truncated)

Changelog

Sourced from geopandas's changelog.

Version 0.9.0 (February 28, 2021)

Many documentation improvements and a restyled and restructured website with a new logo (#1564, #1579, #1617, #1668, #1731, #1750, #1757, #1759).

New features and improvements:

  • The geopandas.read_file function now accepts more general file-like objects (e.g. fsspec open file objects). It will now also automatically recognize zipped files (#1535).
  • The GeoDataFrame.plot() method now provides access to the pandas plotting functionality for the non-geometry columns, either using the kind keyword or the accessor method (e.g. gdf.plot(kind="bar") or gdf.plot.bar()) (#1465).
  • New from_wkt(), from_wkb(), to_wkt(), to_wkb() methods for GeoSeries to construct a GeoSeries from geometries in WKT or WKB representation, or to convert a GeoSeries to a pandas Seriew with WKT or WKB values (#1710).
  • New GeoSeries.z attribute to access the z-coordinates of Point geometries (similar to the existing .x and .y attributes) (#1773).
  • The to_crs() method now handles missing values (#1618).
  • Support for pandas' new .attrs functionality (#1658).
  • The dissolve() method now allows dissolving by no column (by=None) to create a union of all geometries (single-row GeoDataFrame) (#1568).
  • New estimate_utm_crs() method on GeoSeries/GeoDataFrame to determine the UTM CRS based on the bounds (#1646).
  • GeoDataFrame.from_dict() now accepts geometry and crs keywords (#1619).
  • GeoDataFrame.to_postgis() and geopandas.read_postgis() now supports both sqlalchemy engine and connection objects (#1638).
  • The GeoDataFrame.explode() method now allows exploding based on a non-geometry column, using the pandas implementation (#1720).
  • Performance improvement in GeoDataFrame/GeoSeries.explode() when using the PyGEOS backend (#1693).
  • The binary operation and predicate methods (eg intersection(), intersects()) have a new align keyword which allows optionally not aligning on the index before performing the operation with align=False (#1668).
  • The GeoDataFrame.dissolve() method now supports all relevant keywords of groupby(), i.e. the level, sort, observed and dropna keywords (#1845).
  • The geopandas.overlay() function now accepts make_valid=False to skip the step to ensure the input geometries are valid using buffer(0) (#1802).
  • The GeoDataFrame.to_json() method gained a drop_id keyword to optionally not write the GeoDataFrame's index as the "id" field in the resulting JSON (#1637).
  • A new aspect keyword in the plotting methods to optionally allow retaining the original aspect (#1512)
  • A new interval keyword in the legend_kwds group of the plot() method

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 3, 2021
@dependabot dependabot bot force-pushed the dependabot/pip/geopandas-0.9.0 branch from 3a09531 to 2812ccd Compare March 3, 2021 14:33
@aweinert-MIT
Copy link
Member

@jeffliu-LL , geopandas 0.9.0 is another big update, similar to PR #43

@jeffliu-LL
Copy link

I couldn't find any instances where we use any functions that are deprecated in 0.9.0, so I see no issue in merging this.

@dependabot dependabot bot force-pushed the dependabot/pip/geopandas-0.9.0 branch from 2812ccd to bb40b63 Compare March 3, 2021 15:09
@aweinert-MIT aweinert-MIT merged commit 75a0e30 into master Mar 3, 2021
@dependabot dependabot bot deleted the dependabot/pip/geopandas-0.9.0 branch March 3, 2021 16:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants