Hi. Is there a way to load specific fields in a dataset stored in JSON or JSON lines format?
For example, if a file contains the following lines (extracted from here):
{"id":1,"father":"Mark","mother":"Charlotte","children":["Tom"]}
{"id":2,"father":"John","mother":"Ann","children":["Jessika","Antony","Jack"]}
{"id":3,"father":"Bob","mother":"Monika","children":["Jerry","Karol"]}
How can I load only the id
, father
, and mother
features (leaving out the `children feature)?
Thanks.