# How to edit outside variables in mapping function

**URL:** <https://discuss.huggingface.co/t/how-to-edit-outside-variables-in-mapping-function/102221>\
**Category:** Beginners\
**Created:** [August 13, 2024, 6:34pm UTC](https://discuss.huggingface.co/t/how-to-edit-outside-variables-in-mapping-function/102221 "2024-08-13T18:34:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mikehemberger](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mikehemberger/32/28013_2.png) [@mikehemberger](https://discuss.huggingface.co/u/mikehemberger)\
**Post date:** [August 13, 2024, 6:53pm UTC](https://discuss.huggingface.co/t/how-to-edit-outside-variables-in-mapping-function/102221/2 "2024-08-13T18:53:06Z")

</div>

Hi again,  
I suspect that this here and your other issue have the same solution.  
[Issue](https://discuss.huggingface.co/t/dataset-map-raises-value-error-when-mapping-list-to-dict-like-class/101554)

---

_[View the full topic](https://discuss.huggingface.co/t/how-to-edit-outside-variables-in-mapping-function/102221)._
