How to create a DataFrame from an array of non-indexed listings by indexing it over the arrays?
For example
[[{'count': 6L, 'item_id': 11313}, {'count': 6L, 'item_id': 11348},
{'count': 1L, 'item_id': 11338}, ],[{'count': 4L, 'item_id': 11311},
{'count': 3L, 'item_id': 11281}]]
You must give a dataframe like the following:
+---------+-------+---------+
| user_id | count | item_id |
+---------+-------+---------+
| 0 | 6 | 11313 |
| 0 | 6 | 11348 |
| 0 | 1 | 11338 |
| 1 | 4 | 11311 |
| 1 | 3 | 11281 |