问题描述
这是关于 Python 中的 Great Expectations 模块,主要用于数据质量检查(我发现他们的文档不够充分)。所以我一直在尝试在我的笔记本上设置数据上下文(使用本地数据源) - 如:
以下是我的代码:
from great_expectations.data_context.types.base import DataContextConfig
from great_expectations.data_context.types.base import DatasourceConfig
from great_expectations.data_context.types.base import FilesystemStoreBackendDefaults
from great_expectations.data_context import BaseDataContext
data_context_config = DataContextConfig(
datasources={
"debaprc_test": DatasourceConfig(
class_name="PandasDatasource",batch_kwargs_generators={
"subdir_reader": {
"class_name": "SubdirReaderBatchkwargsGenerator","base_directory": "/Users/debaprc/Downloads"
}
},)
},store_backend_defaults=FilesystemStoreBackendDefaults(root_directory="/Users/debaprc/GE_Test/New/")
)
context = BaseDataContext(project_config=data_context_config)
这是我得到的错误:
base_directory must be an absolute path if root_directory is not provided
我做错了什么?
解决方法
非常感谢您使用远大期望。这是我们最新升级的检查点功能的一个已知问题,该功能已在我们的开发分支上修复。请从开发分支安装或等待我们本周发布的下一个 0.13.9 版本。