Open roger-yu-ds opened 3 years ago
I'm trying to import the ExpectColumnMaxToBeBetweenCustom Expectation from this tutorial, but No module named 'custom_module'.
ExpectColumnMaxToBeBetweenCustom
No module named 'custom_module'
I have copied the file from Complete Example into the great_expectations/plugins directory.
great_expectations/plugins
For the suggested line from custom_module import ExpectColumnMaxToBeBetweenCustom to work there are few more steps required:
from custom_module import ExpectColumnMaxToBeBetweenCustom
column_custom_max_expectation.py
great_expectations/plugins/custom_module
__init__.py
from .column_custom_max_expectation import ExpectColumnMaxToBeBetweenCustom
I'm trying to import the
ExpectColumnMaxToBeBetweenCustom
Expectation from this tutorial, butNo module named 'custom_module'
.I have copied the file from Complete Example into the
great_expectations/plugins
directory.For the suggested line
from custom_module import ExpectColumnMaxToBeBetweenCustom
to work there are few more steps required:column_custom_max_expectation.py
file should be ingreat_expectations/plugins/custom_module
instead ofgreat_expectations/plugins
great_expectations/plugins/custom_module
, there should be an__init__.py
file__init__.py
file there should be the linefrom .column_custom_max_expectation import ExpectColumnMaxToBeBetweenCustom