def y(self): """Return the y location of point geometries in a GeoSeries""" if (self.geom_type == "Point").all(): return _series_unary_op(self, 'y', null_value=np.nan) else: message = "y attribute access only provided for Point geometries" raise ValueError(message)
def y(self): """Return the y location of point geometries in a GeoSeries""" if (self.geom_type == "Point").all(): return _series_unary_op(self, 'y', null_value=np.nan) else: message = "y attribute access only provided for Point geometries" raise ValueError(message)