mirror of
https://github.com/wassname/geopandas.git
synced 2026-09-21 13:00:14 +08:00
BUG: GeoSeries can't use _data attribute with released pandas versions
This commit is contained in:
@@ -514,7 +514,7 @@ class GeoSeries(Series):
|
||||
object.__setattr__(self, name, getattr(other, name, None))
|
||||
return self
|
||||
|
||||
def copy(self, deep=True):
|
||||
def copy(self, order='C'):
|
||||
"""
|
||||
Make a copy of this GeoSeries object
|
||||
|
||||
@@ -528,10 +528,8 @@ class GeoSeries(Series):
|
||||
copy : GeoSeries
|
||||
"""
|
||||
# FIXME: this will likely be unnecessary in pandas >= 0.13
|
||||
data = self._data
|
||||
if deep:
|
||||
data = data.copy()
|
||||
return GeoSeries(data)._propogate_attributes(self)
|
||||
return GeoSeries(self.values.copy(order), index=self.index,
|
||||
name=self.name)._propogate_attributes(self)
|
||||
|
||||
def isnull(self):
|
||||
"""Null values in a GeoSeries are represented by empty geometric objects"""
|
||||
|
||||
Reference in New Issue
Block a user