# Filtering and removing the list with no values

**URL:** <https://forum.dynamobim.com/t/filtering-and-removing-the-list-with-no-values/23102>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [June 26, 2018, 3:20pm UTC](https://forum.dynamobim.com/t/filtering-and-removing-the-list-with-no-values/23102 "2018-06-26T15:20:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rromanov](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rromanov](https://forum.dynamobim.com/u/rromanov)\
**Post date:** [June 26, 2018, 3:20pm UTC](https://forum.dynamobim.com/t/filtering-and-removing-the-list-with-no-values/23102/1 "2018-06-26T15:20:29Z")

</div>

Hi Guys! Sorry for dump question but I’ve been trying to remove these “names” for a couple days already. Please help me!  
Dynamo|529x500

---

<div class="post-metadata">

**Author:** ![3Pinter](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/3pinter/32/74327_2.png) [@3Pinter](https://forum.dynamobim.com/u/3Pinter)\
**Post date:** [June 26, 2018, 3:22pm UTC](https://forum.dynamobim.com/t/filtering-and-removing-the-list-with-no-values/23102/2 "2018-06-26T15:22:46Z")

</div>

I don’t see any Link / image

---

<div class="post-metadata">

**Author:** ![rromanov](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rromanov](https://forum.dynamobim.com/u/rromanov)\
**Post date:** [June 26, 2018, 3:24pm UTC](https://forum.dynamobim.com/t/filtering-and-removing-the-list-with-no-values/23102/3 "2018-06-26T15:24:24Z")

</div>

I’ve just uploaded the picture.

 ![Dynamo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/8/08fcdd0780c4de6fb486ffeb1f68b8eb4ec08302.png)

---

<div class="post-metadata">

**Author:** ![3Pinter](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/3pinter/32/74327_2.png) [@3Pinter](https://forum.dynamobim.com/u/3Pinter)\
**Post date:** [June 26, 2018, 3:31pm UTC](https://forum.dynamobim.com/t/filtering-and-removing-the-list-with-no-values/23102/4 "2018-06-26T15:31:12Z")

</div>

Use this to check if list items are integers (whole numbers)

```
   values = IN[0]
   OUT = list(isinstance(value, int) for value in values)

```

Or something like to get float and integers (whole numbers and decimal numbers).

```
values = IN[0]
a=[]
for value in values:
	if isinstance(value, int) or isinstance(value, float):
		a.append(value)
OUT = a

```

![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/b/7bd6b00db259b46be49dd7e55e0e30e14c378d98.png)

---

<div class="post-metadata">

**Author:** ![rromanov](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rromanov](https://forum.dynamobim.com/u/rromanov)\
**Post date:** [June 26, 2018, 3:47pm UTC](https://forum.dynamobim.com/t/filtering-and-removing-the-list-with-no-values/23102/5 "2018-06-26T15:47:15Z")

</div>

It shows empty list.

 ![Dynamo2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/9/6926b27a3737cc8debd1db5767b75c6c2fd4e374.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [June 26, 2018, 3:52pm UTC](https://forum.dynamobim.com/t/filtering-and-removing-the-list-with-no-values/23102/6 "2018-06-26T15:52:50Z")

</div>

Are you removing text or just a sublist that only contains text?

You could try something like this to remove sublists that don’t contain additional values.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/b/ebe488b92b5a45e443899cca2f68a811d9ac00cc.png)

---

<div class="post-metadata">

**Author:** ![rromanov](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rromanov](https://forum.dynamobim.com/u/rromanov)\
**Post date:** [June 26, 2018, 4:04pm UTC](https://forum.dynamobim.com/t/filtering-and-removing-the-list-with-no-values/23102/7 "2018-06-26T16:04:48Z")

</div>

Thank you guys for an instant help!  
Thank you Nick! It works!

 ![Dynamo3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/8/2852b63bf051071b54ad0202b6fdde4c106f8f70.png)
