Skip to content

Commit

Permalink
CLN: Add kwarg for calls to _series_unary_op() even when using defaul…
Browse files Browse the repository at this point in the history
…t value of null_value
  • Loading branch information
Kelsey Jordahl committed Apr 30, 2015
1 parent d77b129 commit bc3dc90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geopandas/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ def length(self):
@property
def is_valid(self):
"""Return True for each valid geometry, else False"""
return _series_unary_op(self, 'is_valid')
return _series_unary_op(self, 'is_valid', null_value=False)

@property
def is_empty(self):
"""Return True for each empty geometry, False for non-empty"""
return _series_unary_op(self, 'is_empty')
return _series_unary_op(self, 'is_empty', null_value=False)

@property
def is_simple(self):
Expand Down Expand Up @@ -168,7 +168,7 @@ def exterior(self):
def interiors(self):
"""Return the interior rings of each polygon"""
# TODO: return empty list or None for non-polygons
return _series_unary_op(self, 'interiors')
return _series_unary_op(self, 'interiors', null_value=False)

def representative_point(self):
"""Return a GeoSeries of points guaranteed to be in each geometry"""
Expand Down

0 comments on commit bc3dc90

Please sign in to comment.