BUG: GeoSeries can't use _data attribute with released pandas versions

This commit is contained in:
Kelsey Jordahl
2013-09-30 21:43:58 -05:00
parent 73527d40f3
commit a693228fb4
+3 -5
View File
@@ -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"""