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

Include a native Python dict read function #91

Open
AdrianDAlessandro opened this issue Oct 1, 2024 · 3 comments · May be fixed by #132
Open

Include a native Python dict read function #91

AdrianDAlessandro opened this issue Oct 1, 2024 · 3 comments · May be fixed by #132
Assignees
Labels
enhancement New feature or request Hacktoberfest

Comments

@AdrianDAlessandro
Copy link
Contributor

Since the most basic version of this package only requires the pyyaml dependency, there should be a basic read function that returns a native Python type.

There is currently a read_to_list function (that isn't exposed as a top-level function), that returns a nested list. But that isn't in the most developer friendly format because it has a mix of column headers and data in the list. A dictionary type feels more appropriate.

The dictionary could be structured with 2 keys, "columns" and "data", with "data" being a 2D nested list. Or it could have the columns names as keys and the values each being a list for that column.

@Kaos599
Copy link

Kaos599 commented Oct 28, 2024

can i try working on this @AdrianDAlessandro

@AdrianDAlessandro
Copy link
Contributor Author

Sure!

@Kaos599
Copy link

Kaos599 commented Oct 29, 2024

@AdrianDAlessandro I have tried to address the issue in the following PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest
Projects
None yet
2 participants