This is the code used:
import great_expectations as gx
context = gx.get_context()
validator = context.sources.pandas_default.read_csv(
'sample.txt'
)
validator.expect_column_values_to_be_between('age',0,100)
checkpoint = context.add_or_update_checkpoint(
name="my_quickstart_checkpoint",
validator=validator,
)
Last line throws type error.
TypeError: add_or_update_checkpoint() got an unexpected keyword argument 'validator'
Expectation works fine but not checkpoint creation.