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: 
As mentioned in the comment, `True/False` values are also the instances of `int` in Python, so you can add one more condition to check if the value is not an instance of `bool`:

```py
>>> lst = [True, 19, 19.5, False]
>>> [x for x in lst if isinstance(x, int) and not isinstance(x, bool)]
[19]

```
`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`