# Rename headers dataset

**URL:** <https://forum.inductiveautomation.com/t/rename-headers-dataset/54678>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [January 5, 2022, 2:51pm UTC](https://forum.inductiveautomation.com/t/rename-headers-dataset/54678 "2022-01-05T14:51:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![indenkleefj](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/indenkleefj/32/10961_2.png) [@indenkleefj](https://forum.inductiveautomation.com/u/indenkleefj)\
**Post date:** [January 5, 2022, 2:51pm UTC](https://forum.inductiveautomation.com/t/rename-headers-dataset/54678/1 "2022-01-05T14:51:16Z")

</div>

Does anybody have a way (without loop) to rename the headers of a dataset in a script?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [January 5, 2022, 3:00pm UTC](https://forum.inductiveautomation.com/t/rename-headers-dataset/54678/2 "2022-01-05T15:00:22Z")

</div>

How do you get your new header ?

```python
header = ['a', 'b', 'c', 'd']
data = system.dataset.toPyDataSet(value)
return system.dataset.toDataSet(header, data)

```

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 5, 2022, 3:24pm UTC](https://forum.inductiveautomation.com/t/rename-headers-dataset/54678/3 "2022-01-05T15:24:43Z")

</div>

Why do you _need_ to rename the headers? Or, where is the data coming from? You usually want to leave data as is and only use human-readable representations as part of the “frontend”.

---

<div class="post-metadata">

**Author:** ![indenkleefj](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/indenkleefj/32/10961_2.png) [@indenkleefj](https://forum.inductiveautomation.com/u/indenkleefj)\
**Post date:** [January 5, 2022, 3:38pm UTC](https://forum.inductiveautomation.com/t/rename-headers-dataset/54678/4 "2022-01-05T15:38:11Z")

</div>

I want to export the data of a perspective table.  
Filtered (dataset) or not filtered (JSON).  
While exporting I don’t want to include the non-visible headers.  
Also, I want to include the translation of the header names (titles), so it will be in a way the user can easily understand.
