diff --git a/scorecardpipeline/__init__.py b/scorecardpipeline/__init__.py index d5e0518..56a995f 100644 --- a/scorecardpipeline/__init__.py +++ b/scorecardpipeline/__init__.py @@ -20,7 +20,7 @@ from .rule_extraction import DecisionTreeRuleExtractor -__version__ = "0.1.32" +__version__ = "0.1.33" __all__ = ( "__version__" , "FeatureSelection", "FeatureImportanceSelector", "StepwiseSelection", "Combiner", "WOETransformer" diff --git a/scorecardpipeline/auto_report.py b/scorecardpipeline/auto_report.py index 3bbcd3e..9aac8fc 100644 --- a/scorecardpipeline/auto_report.py +++ b/scorecardpipeline/auto_report.py @@ -131,6 +131,8 @@ def auto_data_testing_report(data, features=None, target="target", date=None, da if not isinstance(excel_writer, ExcelWriter) and not isinstance(sheet, Worksheet): writer.save(excel_writer) + return end_row, end_col + if __name__ == '__main__': target = "creditability" diff --git a/setup.py b/setup.py index db2aff4..32abf76 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,6 @@ import re from setuptools import setup, find_packages, Extension - NAME = 'scorecardpipeline' @@ -11,39 +10,39 @@ def get_version(): return re.search(r'__version__ = "(.*?)"', f.read()).group(1) -def get_requirements(stage = None): +def get_requirements(stage=None): file_name = 'requirements' if stage is not None: file_name = f"{file_name}-{stage}" - + requirements = [] with open(f"{file_name}.txt", 'r') as f: for line in f: line = line.strip() if not line or line.startswith('-'): continue - + requirements.append(line) - + return requirements setup( - name = NAME, - version = get_version(), - description = '评分卡pipeline建模包,封装toad、scorecardpy、optbinning等评分卡建模相关组件,API风格与sklearn高度一致,自持自定义模型报告输出', - long_description = open('README.md', encoding = 'utf-8').read(), - long_description_content_type = 'text/markdown', - url = 'https://github.com/itlubber/scorecardpipeline', - author = 'itlubber', - author_email = 'itlubber@qq.com', - packages = find_packages(), - include_package_data = True, - python_requires = '>=3.6', - install_requires = get_requirements(), - license = 'MIT', - classifiers = [ + name=NAME, + version=get_version(), + description='评分卡pipeline建模包,封装toad、scorecardpy、optbinning等评分卡建模相关组件,API风格与sklearn高度一致,自持自定义模型报告输出', + long_description=open('README.md', encoding='utf-8').read(), + long_description_content_type='text/markdown', + url='https://github.com/itlubber/scorecardpipeline', + author='itlubber', + author_email='itlubber@qq.com', + packages=find_packages(), + include_package_data=True, + python_requires='>=3.6', + install_requires=get_requirements(), + license='MIT', + classifiers=[ 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X', @@ -55,4 +54,4 @@ def get_requirements(stage = None): 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', ], -) \ No newline at end of file +)