Question: I have a dataframe which looks like this:

```
val
"ID: abc\nName: John\nLast name: Johnson\nAge: 27"
"ID: igb1\nName: Mike\nLast name: Jackson\nPosition: CEO\nAge: 42"
...

```

I would like to extract Name, Position and Age from those values and turn them into separate columns to get dataframe which looks like this:

```
Name  Position     Age
John     NaN        27
Mike     CEO        42

```

How could I do that?

Answer: 
Use `type` comparison instead:

```
_list = [i for i in _list if type(i) is int]

```

Side note: avoid using `list` as the variable name since it's the Python builtin name for the [`list`](https://docs.python.org/3/library/stdtypes.html#list) type.
`bool` is a subclass of `int`, therefore `True` is an instance of `int`.

* `False` equal to `0`
* `True` equal to `1`

you can use another check or `if type(i) is int`