# Best way to remove a column from a json dataset

**URL:** <https://forum.inductiveautomation.com/t/best-way-to-remove-a-column-from-a-json-dataset/109046>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [July 29, 2025, 8:26am UTC](https://forum.inductiveautomation.com/t/best-way-to-remove-a-column-from-a-json-dataset/109046 "2025-07-29T08:26:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [July 30, 2025, 7:24am UTC](https://forum.inductiveautomation.com/t/best-way-to-remove-a-column-from-a-json-dataset/109046/4 "2025-07-30T07:24:54Z")

</div>

I thought about that, but I ended doing something a bit different.

I used this:

> [@TIP - Converting a dataset column into a list](https://forum.inductiveautomation.com/t/tip-converting-a-dataset-column-into-a-list/38388/6):
>
> ds.getColumnAsList(ds.getColumnIndex("column"))

And did this:

```python
self.props.columns[6].visible = any(value.getColumnAsList(value.getColumnIndex("VALUE2")))

```

So only I show it if there is something to show. A bit different approach than what I first thought. Also this only gets executed at the start of the view. So even if it's a bit inefficient is only done 1 time.

---

_[View the full topic](https://forum.inductiveautomation.com/t/best-way-to-remove-a-column-from-a-json-dataset/109046)._
