chore(deps): update dependency geopandas to v1 [security]#259
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency geopandas to v1 [security]#259renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
c3e9713 to
4fd5d18
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.10.2→==1.1.2Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
geopandas SQL Injection Vulnerability in to_postgis() Allows Information Disclosure
CVE-2025-69662 / GHSA-6497-prx7-gpmq
More information
Details
SQL injection vulnerability in geopandas before v.1.1.2 allows an attacker to obtain sensitive information via the to_postgis()` function being used to write GeoDataFrames to a PostgreSQL database.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
geopandas/geopandas (geopandas)
v1.1.2Compare Source
Bug fixes:
GeoDataFrame.from_featureswhen there is nopropertiesfield (#3599).read_fileandto_fileerrors (#3682)read_parquetwithto_pandas_kwargsfor complex (list/struct) arrow types (#3640)value_countson GeoSeries now preserves CRS in index (#3669)pyogriocannot be imported (#3682).read_parquetwithto_pandas_kwargsfor complex (list/struct) arrow types (#3640)..to_jsonnow provides a clearer error message when called on a GeoDataFrame without an active geometrycolumn (#3648).
del gdf["geometry"]now will downcast to apd.DataFrameif there are no geometry columns leftin the dataframe (#3648).
to_postgisvia geometry column name (#3681).v1.1.1Compare Source
Bug fixes:
overlaywithhow="identity"when input dataframes have columnnames that are equal (#3596).
v1.1.0Compare Source
Notes on dependencies:
are now the minimum required version for these dependencies.
Furthermore, the minimum tested version for optional dependencies has been updated to
fiona 1.8.21, scipy 1.9, matplotlib 3.7, mapclassify 2.5, folium 0.12 and
SQLAlchemy 2.0. Older versions of these libraries may continue to work, but are no longer
considered supported (#3371).
New features and improvements:
SpatialIndex.queryin a form of a dense or asparse boolean array. This adds optional dependency on
scipyfor the sparse output.Note that this also changes the previously undocumented behaviour of the
output_formatkeyword (#1674).
grid_sizeparameter tounion_allanddissolve(#3445).GeoDataFrame.plotnow supportspd.Indexas an input for thecolumnkeyword (#3463).disjoint_subsetunion algorithm forunion_allanddissolve(#3534).constrained_delaunay_trianglesmethod to GeoSeries/GeoDataFrame (#3552).to_pandas_kwargsargument tofrom_arrow,read_parquetandread_featherto allow better control of conversion of non-geometric Arrow data to DataFrames (#3466).
is_valid_coverageandinvalid_coverage_edgesto GeoSeries/GeoDataFrame toallow validation of polygonal coverage (#3545).
maximum_inscribed_circlemethod from shapely to GeoSeries/GeoDataFrame (#3544).minimum_clearance_linemethod from shapely to GeoSeries/GeoDataFrame (#3543).orient_polygonsmethod from shapely to GeoSeries/GeoDataFrame (#3559).methodandkeep_collapsedargument tomake_valid(#3548).simplify_coveragemethod for topological simplification of polygonal coveragesto GeoSeries/GeoDataFrame (#3541).
mandhas_mproperties,include_minget_coordinates) (#3561).geom_equals_identicalmethod exposingequals_identicalfrom shapely to GeoSeries/GeoDataFrame (#3560).does not directly indicate its support (#3572).
geopandas.accessorsmodule. Import this module to register apandas.Series.geoaccessor, which exposes GeoSeries methods via pandas'sextension mechanism (#3272).
overlaywithhow=identity(#3504).read_filewhen a GeoDataFrame or GeoSeries maskand/or the source dataset is missing a defined CRS (#3464).
Bug fixes:
to_geo_dictand__geo_interface__. (#3436).sample_pointsthat could occasionally result in non-uniform distribution (#3470).when layer is specified when using the mask or bbox keywords (#3378).
GroupBy.agg(#3368).geometrywhich are not(Geo)Series, but instead should be interpreted as column names, like Enums (#3384).
failed when
crswas provided (#3383).overlaywithkeep_geom_typereturns wrong results if theinput contains invalid geometries (#3395).
GeoDataFrames causing errors in
overlay(#3424).failed when
crswas provided (#3383).Deprecations and compatibility notes:
GeoSeries.selectmethod wrapping the pandasSeries.selectmethod has been removed.The upstream method no longer exists in all supported version of pandas (#3394).
geom_almost_equalsmethod has been removed. Usegeom_equals_exactinstead (#3522).v1.0.1Compare Source
Bug fixes:
explore()(#3360, #3364).v1.0.0Compare Source
Notes on dependencies:
currently supported is shapely >= 2. As a consequence, spatial indexing based on the
rtree package has also been removed (#3035).
of Fiona (#3223).
New methods:
count_geometriesmethod from shapely to GeoSeries/GeoDataFrame (#3154).count_interior_ringsmethod from shapely to GeoSeries/GeoDataFrame (#3154).relate_patternmethod from shapely to GeoSeries/GeoDataFrame (#3211).intersection_allmethod from shapely to GeoSeries/GeoDataFrame (#3228).line_mergemethod from shapely to GeoSeries/GeoDataFrame (#3214).set_precisionandget_precisionmethods from shapely to GeoSeries/GeoDataFrame (#3175).count_coordinatesmethod from shapely to GeoSeries/GeoDataFrame (#3026).minimum_clearancemethod from shapely to GeoSeries/GeoDataFrame (#2989).shared_pathsmethod from shapely to GeoSeries/GeoDataFrame (#3215).is_ccwmethod from shapely to GeoSeries/GeoDataFrame (#3027).is_closedattribute from shapely to GeoSeries/GeoDataFrame (#3092).force_2dandforce_3dmethods from shapely to GeoSeries/GeoDataFrame (#3090).voronoi_polygonsmethod from shapely to GeoSeries/GeoDataFrame (#3177).contains_properlymethod from shapely to GeoSeries/GeoDataFrame (#3105).build_areamethod exposingbuild_areashapely to GeoSeries/GeoDataFrame (#3202).snapmethod from shapely to GeoSeries/GeoDataFrame (#3086).transformmethod from shapely to GeoSeries/GeoDataFrame (#3075).get_geometrymethod from shapely to GeoSeries/GeoDataFrame (#3287).dwithinmethod to check for a "distance within" predicate onGeoSeries/GeoDataFrame (#3153).
to_geo_dictmethod to generate GeoJSON-like dictionary from a GeoDataFrame (#3132).polygonizemethod exposing bothpolygonizeandpolygonize_fullfromshapely to GeoSeries/GeoDataFrame (#2963).
is_valid_reasonmethod from shapely to GeoSeries/GeoDataFrame (#3176).to_arrowmethod andfrom_arrowclass method toGeoSeries/GeoDataFrame to export and import to/from Arrow data with GeoArrow
extension types (#3219, #3301).
New features and improvements:
predicate="dwithin"option anddistanceargument to thesindex.query()methodand
sjoin(#2882).__repr__now trims trailing zeros for a more readableoutput (#3087).
on_invalidparameter tofrom_wktandfrom_wkb(#3110).make_validoption inoverlaynow uses themake_validmethod instead ofbuffer(0)(#3113)."geometry"asdtypetopd.read_csvwill now return a GeoSeries forthe specified columns (#3101).
read_filefor themaskkeyword for the pyogrio engine (#3062).read_filefor thecolumnskeyword for the fiona engine (#3133).to_parquetandread_parquetfor writing and reading filesusing the GeoArrow-based native geometry encoding of GeoParquet 1.1 (#3253, #3275).
sortkeyword toclipmethod for GeoSeries and GeoDataFrame to allow optionalpreservation of the original order of observations (#3233).
show_bbox,drop_idandto_wgs84arguments to allow further customization ofGeoSeries.to_json(#3226).explorenow supportsGeoDataFrames with additional columns containing datetimes, uuids andother non JSON serializable objects (#3261).
GeoSeries.fillnamethod now supports thelimitkeyword (#3290).on_attributeoption argument to thesjoin()method, allowing to restrict joins to the observations with
matching attributes (#3231).
bboxcovering encoding in geoparquet. Can filter reading of parquetfiles based on a bounding box, and write out a bounding box column to parquet files (#3282).
alignkeyword in binary methods now defaults toNone, treated as True. Explicit Truewill silence the warning about mismatched indices (#3212).
GeoSeries.set_crscan now be used to remove CRS information by passingcrs=None, allow_override=True(#3316).autolimkeyword argument toGeoSeries.plot()andGeoDataFrame.plot()(#2817).metadataparameter toGeoDataFrame.to_file(#2850).geometryargument to the GeoDataFrame constructor will not use the name but will always
produce a GeoDataFrame with an active geometry column named "geometry" (#3337).
read_postgiswill query the spatial_ref_sys table to determine the CRS authorityinstead of its current behaviour of assuming EPSG. In the event the spiatal_ref_sys
table is not present, or the SRID is not present,
read_postgiswill fallbackon assuming EPSG CRS authority (#3329).
GeoDataFrame.active_geometry_nameproperty returning the active geometry column's name or None if no active geometry column is set (#2943).Backwards incompatible API changes:
sjoinmethod will now preserve the name of the index of the rightGeoDataFrame, if it has one, instead of always using
"index_right"as thename for the resulting column in the return value (#846, #2144).
argument to avoid confusion of whether the automatic alignment happens or not (#3271).
explode(.., index_parts=True)is nowset to false for consistency with pandas (#3174).
set_geometryhas been changed when passed a (Geo)Seriesserwith a name.The new active geometry column name in this case will be
ser.name, if not None, rather thanthe previous active geometry column name. This means that if the new and old names are
different, then both columns will be preserved in the GeoDataFrame. To replicate the previous
behaviour, you can instead call
gdf.set_geometry(ser.rename(gdf.active_geometry_name))(#3237).Note that this behaviour change does not affect the
GeoDataFrameconstructor, passing a namedGeoSeries
sertoGeoDataFrame(df, geometry=ser)will always produce a GeoDataFrame with ageometry column named "geometry" to preserve backwards compatibility. If you would like to
instead propagate the name of
serwhen constructing a GeoDataFrame, you can instead calldf.set_geometry(ser)orGeoDataFrame(df, geometry=ser).rename_geometry(ser.name)(#3337).delaunay_trianglesnow considers all geometries together when creating the Delaunay triangulationinstead of performing the operation element-wise. If you want to generate Delaunay
triangles for each geometry separately, use
shapely.delaunay_trianglesinstead. (#3273)read_filenow returns a Pandas DataFrame instead of a GeoDataFrame with an empty
geometrycolumn.Enforced deprecations:
geopandas.datasetshas been enforced and the module has beenremoved. New sample datasets are now available in the
geodatasets package (#3084).
geopandas.io.read_file,geopandas.io.to_fileandgeopandas.io.sql.read_postgis.geopandas.read_file,geopandas.read_postgisand the GeoDataFrame/GeoSeriesto_file(..)method should be used instead.
GeometryArray.dataproperty,np.asarray(..)or theto_numpy()method should be used instead.
sindex.query_bulkmethod, usingsindex.queryinstead.sjoinparameterop,predicateshould be supplied instead.__xor__,__or__,__and__and__sub__. Instead use methodssymmetric_difference,union,intersectionanddifferencerespectively.plot_polygon_collection,plot_linestring_collectionandplot_point_collection, use the GeoSeries/GeoDataFrame.plotmethod directly instead.
.plotparametersaxesandcolormap, instead useaxandcmaprespectively.versionkeyword into_parquetandto_feather.This keyword will now be passed through to pyarrow and use
schema_versionto specify the GeoParquet specification version (#3334).New deprecations:
unary_unionattribute is now deprecated and replaced by theunion_all()method (#3007) allowingopting for a faster union algorithm for coverages (#3151).
The
include_fieldsandignore_fieldskeywords inread_file()are deprecatedfor the default pyogrio engine. Currently those are translated to the
columnskeywordfor backwards compatibility, but you should directly use the
columnskeyword insteadto select which columns to read (#3133).
The
dropkeyword inset_geometryhas been deprecated, and in future thedrop=Truebehaviour will be removed (#3237). To prepare for this change, you should remove any explicit
drop=Falsecalls in your code (the default behaviour already is the same asdrop=False).To replicate the previous
drop=Truebehaviour you should replacegdf.set_geometry(new_geo_col, drop=True)withThe
geopandas.use_pygeosoption has been deprecated and will be removed in GeoPandas1.1 (#3283)
Manual overriding of an existing CRS of a GeoSeries or GeoDataFrame by setting the
crsproperty has been deprecatedand will be disabled in future. Use the
set_crs()method instead (#3085).Bug fixes:
GeoDataFrame.merge()incorrectly returning aDataFrameinstead of aGeoDataFramewhen thesuffixesargument is applied to the activegeometry column (#2933).
GeoDataFrameconstructor where ifgeometryis given a namedGeoSeriesthe name was not used as the active geometry column name (#3237).GeoSeriesconstructor when passing a Series and specifying acrsto not change the original input data (#2492).read_filewith the fiona engine (#3280). An analogous fix for pyogrio is included in
pyogrio 0.8.1.
to_parquetto write correct metadata in case of 3D geometries (#2824).explore(#3316).v0.14.4Compare Source
fiona 1.10 releases.
v0.14.3Compare Source
pandas.concatCRS consistency checking where CRS differing by WKTwhitespace only were treated as incompatible (#3023).
v0.14.2Compare Source
overlaywhere usingbuffer(0)instead ofmake_validinternallyproduced invalid results (#3074).
explore()method when the active geometry contains missing and empty geometries (#3094).v0.14.1Compare Source
of the GeoParquet specification (geoparquet.org) (#2663).
read_parquetandread_featherfor CVE-2023-47248 (#3070).v0.14.0Compare Source
GeoPandas will use Shapely 2.0 by default instead of PyGEOS when both Shapely >= 2.0 and
PyGEOS are installed. PyGEOS will continue to be used by default when PyGEOS is
installed alongside Shapely < 2.0. Support for PyGEOS and Shapely < 2.0 will be removed
in GeoPandas 1.0. (#2999)
API changes:
seedkeyword insample_pointsis deprecated. Usernginstead. (#2913).New methods:
concave_hullmethod from shapely to GeoSeries/GeoDataframe (#2903).delaunay_trianglesmethod from shapely to GeoSeries/GeoDataframe (#2907).extract_unique_pointsmethod from shapely to GeoSeries/GeoDataframe (#2915).frechet_distance()method from shapely to GeoSeries/GeoDataframe (#2929).hausdorff_distancemethod from shapely to GeoSeries/GeoDataframe (#2909).minimum_rotated_rectanglemethod from shapely to GeoSeries/GeoDataframe (#2541).offset_curvemethod from shapely to GeoSeries/GeoDataframe (#2902).remove_repeated_pointsmethod from shapely to GeoSeries/GeoDataframe (#2940).reversemethod from shapely to GeoSeries/GeoDataframe (#2988).segmentizemethod from shapely to GeoSeries/GeoDataFrame (#2910).shortest_linemethod from shapely to GeoSeries/GeoDataframe (#2960).New features and improvements:
exclusiveparameter tosjoin_nearestmethod for Shapely >= 2.0 (#2877)to_file()method will now automatically detect the FlatGeoBuf driverfor files with the
.fgbextension (#2958)Bug fixes:
"crs"(#2944)explorewhen usingUserDefinedbins (#2923)applywithaxis=1where the given user defined function returns nesteddata in the geometry column (#2959)
np.int32andpd.Int32Dtypecolumns (#2950)assert_geodataframe_equalnow handles GeoDataFrames with no active geometry (#2498)Notes on (optional) dependencies:
supported pandas version is now 1.4). Further, the minimum required versions for the
listed dependencies have now changed to shapely 1.8.0, fiona 1.8.21, pyproj 3.3.0 and
matplotlib 3.5.0 (#3001)
Deprecations and compatibility notes:
geom_almost_equals()methods have been deprecated andgeom_equals_exact()should be used instead (#2604).Acknowledgments
Thanks to everyone who contributed to this release!
A total of 16 people contributed patches to this release. People with a "+" by their names contributed for the first time.
Full Changelog: geopandas/geopandas@v0.13.2...v0.14.0
v0.13.2Compare Source
Bug fix:
file://..) usinggeopandas.read_file(#2948).v0.13.1Compare Source
Bug fix:
geopandas.read_file(#2908). Thisrestores the behaviour to download all data up-front before passing it to the
underlying engine (fiona or pyogrio), except if the server supports partial requests
(to support reading a subset of a large file).
v0.13.0Compare Source
New methods:
sample_pointsmethod to sample random points from Polygon or LineString geometries (#2860).hilbert_distance()method that calculates the distance along a Hilbert curve for each geometry in a GeoSeries/GeoDataFrame (#2297).sort_values()) based on the distance along the Hilbert curve (#2070).get_coordinates()method from shapely to GeoSeries/GeoDataframe (#2624).minimum_bounding_circle()method from shapely to GeoSeries/GeoDataframe (#2621).minimum_bounding_radius()as GeoSeries method (#2827).Other new features and improvements:
GeoSeries.fillnavia anotherGeoSeries(#2535).min_zoomandmax_zoominside themap_kwdsargument for.explore()(#2599).mode="a"orappend=True) into_file()usingengine="pyogrio"(#2788).to_wgs84keyword toto_jsonallowing automatic re-projecting to follow the 2016 GeoJSON specification (#416).to_jsonoutput now includes a"crs"field if the CRS is not the default WGS84 (#1774).geometryattribute of GeoDataFrame without an active geometry column related to the default name"geometry"being provided in the constructor (#2577)Deprecations and compatibility notes:
unary_unionwill return'GEOMETRYCOLLECTION EMPTY'instead of None for all-None GeoSeries. (#2618)query_bulk()method of the spatial index.sindexproperty is deprecated in favor ofquery()(#2823).Bug fixes:
plot()if an empty or missing geometry is present (#2224)explore()(#2657)to_parquet/to_featherto not write an invalid bbox (with NaNs) in the metadata in case of an empty GeoDataFrame (#2653)to_parquet/to_featherto use correct WKB flavor for 3D geometries (#2654)read_fileto avoid reading all file bytes prior to calling Fiona or Pyogrio if provided a URL as input (#2796)copy()downcasting GeoDataFrames without an active geometry column to a DataFrame (#2775)iterfeatures()method of GeoDataFrame to correctly handle non-scalar values whenna='drop'is specified (#2811)plot(#2886)Notes on (optional) dependencies:
Acknowledgments
Thanks to everyone who contributed to this release!
A total of 32 people contributed patches to this release. People with a "+" by their names contributed a patch for the first time.
v0.12.2Compare Source
Bug fixes:
to_crs()when using PyGEOS orShapely >= 2.0 (previously the z coordinates were lost) (#1345).
naturalearth_lowresbuilt-in dataset (#2670)v0.12.1Compare Source
Small bug-fix release removing the shapely<2 pin in the installation requirements.
v0.12.0Compare Source
The highlight of this release is the support for Shapely 2.0. This makes it possible to test Shapely 2.0 (currently 2.0b1) alongside GeoPandas.
Note that if you also have PyGEOS installed, you need to set an environment variable (
USE_PYGEOS=0) before importing geopandas to actually test Shapely 2.0 features instead of PyGEOS. See https://geopandas.org/en/latest/getting_started/install.html#using-the-optional-pygeos-dependency for more details.New features and improvements:
normalize()method from shapely to GeoSeries/GeoDataframe (#2537).make_valid()method from shapely to GeoSeries/GeoDataframe (#2539).wherefilter toread_file(#2552).Deprecations and compatibility notes:
crsof aGeoDataFramewithout active geometry column was deprecated and this now raises an AttributeError (#2578)..explore()for recent Matplotlib versions (#2596).Bug fixes:
geopandas.clip()when clipping with an empty geometry (#2589).gdf.geometrywhere the active geometry column is missing, and a column named"geometry"is present will now raise anAttributeError, rather than returninggdf["geometry"](#2575).pandas.concatwill no longer silently override CRS information if not all inputs have the same CRS (#2056).Acknowledgments
Thanks to everyone who contributed to this release!
A total of 17 people contributed patches to this release. People with a "+" by their names contributed a patch for the first time.
v0.11.1Compare Source
Small bug-fix release:
unstack()and
pivot()involving MultiIndex, or GeoDataFrame construction withMultiIndex (#2486).
GeoDataFrame.explode()with non-defaultgeometry column name.
apply()causing row-wise all nan float columns to becasted to GeometryDtype (#2482).
offsets (#2479). These will be read as UTC localized values.
outside the range supported by [ns] precision (#2505).
versioninto_parquetandto_feather. As a result, theversionparameterfor the
to_parquetandto_feathermethods has been replaced withschema_version.versionwill be passed directly to underlyingfeather or parquet writer.
versionwill only be used to setschema_versionifversionis one of 0.1.0 or 0.4.0 (#2496).v0.11.0Compare Source
Highlights of this release:
geopandas.read_file()andGeoDataFrame.to_file()methods to read and write GIS file formats can now optionally use the pyogrio package under the hood through theengine="pyogrio"keyword. The pyogrio package implements vectorized IO for GDAL/OGR vector data sources, and is faster compared to thefiona-based engine (#2225).UserWarning(#2327).New features and improvements:
Improved handling of GeoDataFrame when the active geometry column is lost from the GeoDataFrame. Previously, square bracket indexing
gdf[[...]]returned a GeoDataFrame when the active geometry column was retained and a DataFrame was returned otherwise. Other pandas indexing methods (loc,iloc, etc) did not follow the same rules. The new behaviour for all indexing/reshaping operations is now as follows (#2329, #2060):DataFramecontaining the active geometry column, a GeoDataFrame is returnedDataFramecontainingGeometryDtypecolumns, but not the active geometry column, aGeoDataFrameis returned, where the active geometry column is set toNone(set the new geometry column withset_geometry())DataFramecontaining noGeometryDtypecolumns, aDataFrameis returned (this can be upcast again by callingset_geometry()or theGeoDataFrameconstructor)SeriesofGeometryDtype, aGeoSeriesis returned, otherwiseSeriesis returned.Datetime fields are now read and written correctly for GIS formats which support them (e.g. GPKG, GeoJSON) with fiona 1.8.14 or higher. Previously, datetimes were read as strings (#2202).
folium.Mapkeyword arguments can now be specified as themap_kwdsargument toGeoDataFrame.explore()method (#2315).Add a new parameter
style_functiontoGeoDataFrame.explore()to enable plot styling based on GeoJSON properties (#2377).It is now possible to write an empty
GeoDataFrameto a file for supported formats (#2240). Attempting to do so will now emit aUserWarninginstead of aValueError.Fast rectangle clipping has been exposed as
GeoSeries/GeoDataFrame.clip_by_rect()(#1928).The
maskparameter ofGeoSeries/GeoDataFrame.clip()now accepts a rectangular mask as a list-like to perform fast rectangle clipping using the newGeoSeries/GeoDataFrame.clip_by_rect()(#2414).Bundled demo dataset
naturalearth_lowreshas been updated to version 5.0.1 of the source, with fieldISO_A3manually corrected for some cases (#2418).Deprecations and compatibility notes:
GeometryArray.equals_exact()andGeometryArray.almost_equals()have been removed. They shouldbe replaced with
GeometryArray.geom_equals_exact()andGeometryArray.geom_almost_equals()respectively (#2267).explicit_crs_from_epsg(),epsg_from_crs()andget_epsg_file_contents()were removed (#2340).GeoSeries.isna()with empty geometries present has been removed (#2349).GeoDataFrame/GeoSeriesconstructor which contradicted the underlyingGeometryArraynow raises aValueError(#2100).GeoDataFrameconstructor when no geometry column is provided and callingGeoDataFrame. set_crson aGeoDataFramewithout an active geometry column now raise aValueError(#2100)GeoSeriesconstructor is now fully deprecated and will raise aTypeError(#2314). Previously, apandas.Serieswas returned for non-geometry data.GeoSeries/GeoDataFrameset operations__xor__(),__or__(),__and__()and__sub__(),geopandas.io.file.read_file/to_fileandgeopandas.io.sql.read_postgisnow emitFutureWarninginstead ofDeprecationWarningand will be completely removed in a future release.crsof aGeoDataFramewithout active geometry column is deprecated and will be removed in GeoPandas 0.12 (#2373).Bug fixes:
GeoSeries.to_framenow creates aGeoDataFramewith the geometry column name set correctly (#2296)UnboundLocalErrorinGeoDataFrame.plot()usinglegend=Trueandmissing_kwds(#2281).explode()incorrectly relating index to columns, including where the input index is not unique (#2292)GeoSeries.[xyz]raising anIndexErrorwhen the underlying GeoSeries contains empty points (#2335). Rows corresponding to empty points now containnp.nan.GeoDataFrame.ilocraising aTypeErrorwhen indexing aGeoDataFramewith only a single column ofGeometryDtype(#1970).GeoDataFrame.iterfeatures()not returning features with the same field order asGeoDataFrame.columns(#2396).GeoDataFrame.from_features()to support reading GeoJSON with null properties (#2243).GeoDataFrame.to_parquet()not interceptingenginekeyword argument, breaking consistency with paConfiguration
📅 Schedule: (in timezone America/Vancouver)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are deployed in: