Skip to content

Commit

Permalink
Merge pull request #35 from topper-123/patch-1
Browse files Browse the repository at this point in the history
Update none_missing decorator
  • Loading branch information
TomAugspurger committed May 27, 2017
2 parents 7b0bcfd + 217d656 commit 2ad77b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engarde/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

import engarde.checks as ck

def none_missing():
def none_missing(columns=None):
"""Asserts that no missing values (NaN) are found"""
def decorate(func):
@wraps(func)
def wrapper(*args, **kwargs):
result = func(*args, **kwargs)
ck.none_missing(result)
ck.none_missing(result, columns=columns)
return result
return wrapper
return decorate
Expand Down

0 comments on commit 2ad77b0

Please sign in to comment.