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

Select/reorder columns from table #245

Open
jebej opened this issue Jun 3, 2024 · 2 comments
Open

Select/reorder columns from table #245

jebej opened this issue Jun 3, 2024 · 2 comments

Comments

@jebej
Copy link

jebej commented Jun 3, 2024

I have a vector of Dicts, which respects the Tables interface, and it would be useful to be able to select exactly which columns to print as well as reorder them, without needing to build a whole new object. Not sure how easy it would be to implement here!

@ronisbr
Copy link
Owner

ronisbr commented Jun 3, 2024

Hi @jebej !

Can you please provide some examples? I think I did not understand what you are trying to achieve.

@jebej
Copy link
Author

jebej commented Jun 3, 2024

I mean providing an option to filter and order e.g. cols in pretty_table(data; cols=["col1", "col2"]), where data is some Tables-interface respecting object with appropriately named columns. I quickly looked into it, and making a new object would be pretty easy with TableOperations: https://github.com/JuliaData/TableOperations.jl?tab=readme-ov-file#tableoperationsselect, so this is only worth it if it's also easy to do here.

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

2 participants