# Is a checkpoint with varied batch parameters possible?

**URL:** <https://discourse.greatexpectations.io/t/is-a-checkpoint-with-varied-batch-parameters-possible/1920>\
**Category:** GX Core Support\
**Tags:** help-wanted\
**Created:** [September 26, 2024, 2:29pm UTC](https://discourse.greatexpectations.io/t/is-a-checkpoint-with-varied-batch-parameters-possible/1920 "2024-09-26T14:29:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VovaVili](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/vovavili/32/380_2.png) [@VovaVili](https://discourse.greatexpectations.io/u/VovaVili)\
**Post date:** [September 26, 2024, 2:29pm UTC](https://discourse.greatexpectations.io/t/is-a-checkpoint-with-varied-batch-parameters-possible/1920/1 "2024-09-26T14:29:38Z")

</div>

In Great Expectations, GX Core 1.0+, for its Python API, you know if it is possible for a checkpoint to have varied batch parameters per each `gx.ValidationDefinition` instance passed to it?

Say, I want every validation definition to be bound to a particular dataframe. But if I pass batch parameters to a `gx.Checkpoint(...).run(batch_parameters={"dataframe": df_xyz})` method, it just passes that dataframe to all validation definitions.

How do I work around this? I know you can get a checkpoint per each individual validation definition, but this is something that I would like to avoid as much as possible.

---

<div class="post-metadata">

**Author:** ![slack\_user](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/slack_user/32/202_2.png) [@slack\_user](https://discourse.greatexpectations.io/u/slack_user)\
**Post date:** [September 26, 2024, 2:35pm UTC](https://discourse.greatexpectations.io/t/is-a-checkpoint-with-varied-batch-parameters-possible/1920/2 "2024-09-26T14:35:29Z")

</div>

Also here - [https://stackoverflow.com/questions/79027825/great-expectations-is-a-checkpoint-with-varied-batch-parameters-possible](https://stackoverflow.com/questions/79027825/great-expectations-is-a-checkpoint-with-varied-batch-parameters-possible)  
Note: `@Vladimir Vilimajtis` originally [posted this reply in Slack](https://greatexpectationstalk.slack.com/archives/CUTCNHN82/p1727361322284329?thread_ts=1727361000.075349&cid=CUTCNHN82). It might not have transferred perfectly.

---

<div class="post-metadata">

**Author:** ![VovaVili](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/vovavili/32/380_2.png) [@VovaVili](https://discourse.greatexpectations.io/u/VovaVili)\
**Post date:** [September 27, 2024, 9:25am UTC](https://discourse.greatexpectations.io/t/is-a-checkpoint-with-varied-batch-parameters-possible/1920/3 "2024-09-27T09:25:20Z")

</div>

As per Tyler Hoffman in GX Slack:

> Hey @Владимир Вилимайтис we discussed that, but for now landed on one  
> batch parameters dict that gets passed to all validation definitions.  
> If you want different batch params passed to each validation  
> definition, I would probably put each in its own checkpoint, and then  
> pass in the corresponding dataframe to each.
