Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom schema issues / nested arrays #32

Open
dmsdd opened this issue May 21, 2021 · 0 comments
Open

Custom schema issues / nested arrays #32

dmsdd opened this issue May 21, 2021 · 0 comments

Comments

@dmsdd
Copy link

dmsdd commented May 21, 2021

I'm trying to create a schema that will put a list of items from separate columns in to a nested array:

 "data": {
       "tags": ["cashier", "burger flipper", "fry cook"]
  }

Each item is in a different column in the source csv. I tried each column header as 'data_tags', but that only returns the first column with that header. I tried creating a custom schema, and setting the column headers to data_tags_1, data_tags_2,data_tags_3, but I don't think I understand how to use schema - I always get a KeyError on the first column of the csv.

Custom schema:
{"data": {"tags": ["data_tags_1", "data_tags_2", "data_tags_3"]}}

Any suggestions on how to accomplish a nested array?

@dmsdd dmsdd changed the title Custom schema issues Custom schema issues / nested arrays May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant