I've tried to convert a list of dicts into a Databricks' Koalas DataFrame but I keep getting the error message:
ArrowInvalid: cannot mix list and non-list, non-null values
Pandas works perfectly (with pd.DataFrame(list)) but because of company restrictions I must use PySpark/Koalas. I've also tried to convert the list into a dictionary and the error persists.
An example of the list:
[{'A': None,
'B': None,
'C': None,
'D': None,
'E': [],
...},
{'A': data,
'B': data,
'C': data,
'D': data,
'E': None,
...}
]
And the dict is like:
{'A': [None, data, [], [], data],
'B': [None, data, None, [], None],
'C': [None, data, None, [], None],
'D': [None, data, None, [], None],
'E': [[], None, data, [], None]}
Is it possible to get a DataFrame from this? Thanks