How to execute custom expectations using v3 API

Hi all,

I’ve been following this guide: How to create custom Expectations — great_expectations documentation on how to write a custom expectation using and I’ve been able to create a metric and expectation, I don’t know how to invoke it. With the v2 API, this was pretty easy: just run batch.expect… in your notebook.

But with the batch request API, I don’t know how to actually run the custom expectation. Executing the constructor for it just results in some errors.

Any help would be appreciated

1 Like

Make sure that you import the class of your new custom expectation. Then follow the V3 guides for using any expectations. Your expectation will be available.