Anyway, the expected output would be a clean dataframe:
One potential way is to change the queries to output maps
MATCH (u:User)
RETURN {labels:labels(u), n_users:count(u)}
But
That fails at the same moment because it adds an extra layer like before (when getting nodes, it also adds an extra layer, but it doesn't fail because the meta part with each row is not NULL in the neo4j response...
Add it's somewhat unnatural to format queries like that (it should fail still)
Another option is to revive the format argument and reshape the output as done in my code here (which still fails when one of the fields is a list...)
Hi, I'm mainly using queries which output summaries, e.g. counts, averages etc. such as:
which produce hard-to-use outputs, a list of data frames with one column called
value
...You can always stitch them back together afterwards...
However queries which return a list for one field fail:
yields
(Because they add an extra layer, so removing the NULLs fails)
Anyway, the expected output would be a clean dataframe:
But
meta
part with each row is not NULL in the neo4j response...format
argument and reshape the output as done in my code here (which still fails when one of the fields is a list...)Hope it helps