Closed xseignard closed 11 years ago
This is a result of the way JavaScript does its comparisons. I would recommend intercepting your data using the parse
method and flattening the geo
property into two properties: geo_id
and geo_name
. In practical terms, both are not necessary to uniquely identify a location.
Thanks Irene, this is obvious for me now, since I understand js better! Thanks again.
Hello, I'm trying to group by a column that contains an object, and the result is a unique row.
Given the following code : https://github.com/xseignard/oddImmigration/blob/master/js/app.js
And the following data : https://github.com/xseignard/oddImmigration/blob/master/data/test.json
I'm trying to group by a column which is called
geo
which is an object.But the result is only one row (we should have 2 rows), where everything is computed.
I tried the groupby with simple values and arrays and it works as expected.
Regards,
Xavier