# Dataset Conversion

**URL:** <https://forum.inductiveautomation.com/t/dataset-conversion/20799>\
**Category:** Ignition\
**Created:** [November 13, 2018, 2:06pm UTC](https://forum.inductiveautomation.com/t/dataset-conversion/20799 "2018-11-13T14:06:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [November 13, 2018, 2:06pm UTC](https://forum.inductiveautomation.com/t/dataset-conversion/20799/1 "2018-11-13T14:06:34Z")

</div>

Hello There,  
I have a lisf of tuples that I want to convert into dataset.

```auto
[('Test Time', '3.00'), ('Test Temp', '145.00'), ('Torque Range', '8.0'), ('I-Filter', '6.00'), ('ML', '2.24'), ('MH', '5.80'), ('TS2 dNm', '0.63'), ('T10', '0.38'), ('T50', '0.59'), ('T90', '0.94'), ('Max Rate', '7.05'), ('TS1 dNm', '0.48'), ('tanD@MH', '0.308'), ('tanD@ML', '0.571'), ('T25', '0.46'), ('T30', '0.49'), ('crazy result', '10.27'), ('T40', '0.54'), ('T60', '0.66'), ('TC90-TC10', '0.57')]

```

Looking for something 1 or 2 liner code.

Thanks

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 13, 2018, 2:14pm UTC](https://forum.inductiveautomation.com/t/dataset-conversion/20799/2 "2018-11-13T14:14:17Z")

</div>

With the above as `tlist`, yielding one row with column headings:

```auto
return system.dataset.toDataSet([x[0] for x in tlist], [[x[1] for x in tlist]])

```

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [November 13, 2018, 4:40pm UTC](https://forum.inductiveautomation.com/t/dataset-conversion/20799/3 "2018-11-13T16:40:21Z")

</div>

Worked…!!!

Thank you
