I am working on `Ipython` and `Spark` and I have a `RDD` from which I form a `list`. Now from this `list` I want to form a `dataframe` which has multiple columns from parent `list` but these columns are not contiguous. I wrote this but it seems to be working wrong:

```
list1 = rdd.collect()
columns_num = [1,8,11,17,21,24]
df2 = [list[i] for i in columns_num]

```

The above code only selects 6 rows, with only column 1 data, from parent `list` and forms the new `dataframe` with those 6 columns 1 data.

How can I form a new `dataframe` with multiple not contiguous columns from another `list`