# Expectation string

**URL:** <https://discourse.greatexpectations.io/t/expectation-string/491>\
**Category:** Archive\
**Created:** [November 9, 2020, 1:45pm UTC](https://discourse.greatexpectations.io/t/expectation-string/491 "2020-11-09T13:45:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aborah](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/aborah/32/87_2.png) [@aborah](https://discourse.greatexpectations.io/u/aborah)\
**Post date:** [November 9, 2020, 1:45pm UTC](https://discourse.greatexpectations.io/t/expectation-string/491/1 "2020-11-09T13:45:59Z")

</div>

For custom expectations, how does one define an expectation string for the given expectation? Is it possible to remove kwargs from being displayed for it in the data docs?  
It will be amazing if I can return a custom expectation string and the indices for the unexpected values rather than the kwargs and the entire row for the unexpected value but as of right now, removing the kwargs and putting a message is my priority

---

<div class="post-metadata">

**Author:** ![ryan](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@ryan](https://discourse.greatexpectations.io/u/ryan)\
**Post date:** [November 12, 2020, 6:10pm UTC](https://discourse.greatexpectations.io/t/expectation-string/491/2 "2020-11-12T18:10:21Z")

</div>

This question has a related discussion - it sounds like there may be some improvements coming in v0.13 along these lines

> [@How to customize the data docs output for a custom expectation](https://discourse.greatexpectations.io/t/how-to-customize-the-data-docs-output-for-a-custom-expectation/442):
>
> How can I output a custom message or altair graph instead of the default output in data docs?

---

<div class="post-metadata">

**Author:** ![aborah](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/aborah/32/87_2.png) [@aborah](https://discourse.greatexpectations.io/u/aborah)\
**Post date:** [November 13, 2020, 7:12pm UTC](https://discourse.greatexpectations.io/t/expectation-string/491/3 "2020-11-13T19:12:49Z")

</div>

Thanks. Looking forward to 0.13!
