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 |
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 os | |
import unittest | |
import shutil | |
from setuptools import setup | |
from setuptools import Command | |
from dashboard import __version__ | |
try: | |
import coverage | |
except ImportError: |
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
#!/usr/bin/env python3 | |
""" Script to fetch the data from the server and store in a csv file. | |
ARGS: | |
- SQL query to parse. | |
- filename to store the data to in the csv format. | |
OUTPUT: | |
- csv file with the data.""" |
NewerOlder