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

Add embedded lists and embedded objects support to CSV encoder #143

Open
eyurtsev opened this issue Apr 27, 2023 · 3 comments
Open

Add embedded lists and embedded objects support to CSV encoder #143

eyurtsev opened this issue Apr 27, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@eyurtsev
Copy link
Owner

CSV encoder only works with flat objects at the moment, it would be nice to add support for embedded lists and embedded objects. Embedded lists are a particularly common extraction item.

@eyurtsev eyurtsev added good first issue Good for newcomers enhancement New feature or request labels Apr 27, 2023
@ritiksahni
Copy link

Hey, I came across your project (looks pretty cool) and I was reading the list of issues.

I am learning programming and I have a question - What is an embedded list/object? I can see you're referring to CSV files here but I don't understand what an embedded list is in reference to CSV data.

@eyurtsev
Copy link
Owner Author

hi @ritiksahni,

By embedded list or object, i mean putting a list or an object as the value of a particular column for a given row.

For example, here's the first (and only) record of the dataframe below has a list of [1, 2, 3] for the value of column 'b'

pd.DataFrame([{'a': 1, 'b': [1, 2, 3]}]).to_csv()

There's a nearly finished PR here: #144.

@ritiksahni
Copy link

Understood, thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants