Skip to content

Commit

Permalink
Change property testing in accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Jun 24, 2019
1 parent b29fb16 commit f92f7f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dask/dataframe/accessor.py
Expand Up @@ -87,10 +87,10 @@ def __dir__(self):

def __getattr__(self, key):
if key in self._delegates:
if isinstance(getattr(self._accessor, key), property):
return self._property_map(key)
else:
if callable(getattr(self._accessor, key)):
return partial(self._function_map, key)
else:
return self._property_map(key)
else:
raise AttributeError(key)

Expand Down

0 comments on commit f92f7f1

Please sign in to comment.