Created
July 25, 2018 13:51
-
-
Save elena-roff/e1ad0a6df0a69764ee66aa99d77ec993 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
logger = logging.getLogger(__name__) | |
def log_decorator(funk): | |
def wrapper(data, **kwargs): | |
before = data.shape[0] | |
data = funk(data, **kwargs) | |
after = data.shape[0] | |
logger.info("Excluded {} rows, remaining {}".format(before - after, after)) | |
return data | |
return wrapper | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment