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 __repr__ to schema class so a print() call is not needed to represent the schema #299

Closed
Gerhardsa0 opened this issue Jan 13, 2023 · 0 comments
Labels
enhancement 💡 New feature or request

Comments

@Gerhardsa0
Copy link
Contributor

Gerhardsa0 commented Jan 13, 2023

Is your feature request related to a problem? Please describe

At the moment we need to call the print()-function if we want a short representation of the schema. Also each column creates a own line, which makes the output very long.

Desired solution

It should be possible to just call table.schema, which should create an output like this.

TableSchema: 
Column Count: 2
Columns: [(coulmn_name1, type1), (column_name2, type2)]

At the moment the Code looks like this: print(table.schema.__str__()) and creates the following output. -->

TableSchema: 
Column Count: 2
Columns: coulmn_name1, type1
         column_name2, type2

This will make the Useability with Notebooks better.

Possible alternatives (optional)

Screenshots (optional)

Additional context (optional)

@Gerhardsa0 Gerhardsa0 added the enhancement 💡 New feature or request label Jan 13, 2023
@github-project-automation github-project-automation bot moved this to Backlog in Safe-DS Jan 13, 2023
@Gerhardsa0 Gerhardsa0 changed the title add __repr__ to schema class so a print() call is not needed anympre add __repr__ to schema class so a print() call is not needed to represent the schema Jan 13, 2023
@SmiteDeluxe SmiteDeluxe closed this as not planned Won't fix, can't repro, duplicate, stale Jan 13, 2023
@github-project-automation github-project-automation bot moved this from Backlog to ✔️ Done in Safe-DS Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 💡 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants