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

Better repr for schema #1725

Closed
jaychia opened this issue Dec 14, 2023 · 0 comments · Fixed by #1868
Closed

Better repr for schema #1725

jaychia opened this issue Dec 14, 2023 · 0 comments · Fixed by #1868
Labels
good first issue Good for newcomers

Comments

@jaychia
Copy link
Contributor

jaychia commented Dec 14, 2023

Is your feature request related to a problem? Please describe.

Currently our schema repr shows the "header" of our dataframe repr:
image

However, this can be challenging to work with, especially when there are many columns causing certain fields to be hidden

Instead, we could have a custom schema repr, potentially even giving us better, cleaner hierarchical reprs of our nested types (e.g. lists and structs)

@jaychia jaychia added the good first issue Good for newcomers label Jan 8, 2024
samster25 added a commit that referenced this issue Feb 12, 2024
* Shows full schema when calling `df.schema()`
* preserves current behavior when calling `repr(df)`
closes: #1725

<img width="909" alt="image"
src="https://github.com/Eventual-Inc/Daft/assets/2550285/9310da54-54f8-4947-9a6c-257a81a90777">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant