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

__repr__ method to Schema, Row, Column, SupervisedDataset & Table; summary() to Column & Table #319

Closed
SmiteDeluxe opened this issue Jan 13, 2023 · 1 comment · Fixed by #333
Assignees
Labels
enhancement 💡 New feature or request

Comments

@SmiteDeluxe
Copy link
Contributor

SmiteDeluxe commented Jan 13, 2023

A __repr__ method to Schema, Row, Column, SupervisedDataset & Table that shows the containing data (like it does for pandas natively) and the columnnames with their datatypes for Schema.

Also an summary() method to Column & Table for statisstics/description.

See #310 for Column summary.
See #299 for Schema.
See #303 for Table.

@SmiteDeluxe SmiteDeluxe added enhancement 💡 New feature or request stdlib labels Jan 13, 2023
@SmiteDeluxe SmiteDeluxe changed the title __repr__ method to Schema, Row, Column & Table; info() to Column & Table __repr__ method to Schema, Row, Column, SupervisedDataset & Table; info() to Column & Table Jan 13, 2023
@GideonKoenig
Copy link
Contributor

Start um 15:52

@GideonKoenig GideonKoenig changed the title __repr__ method to Schema, Row, Column, SupervisedDataset & Table; info() to Column & Table __repr__ method to Schema, Row, Column, SupervisedDataset & Table; summay() to Column & Table Jan 20, 2023
@GideonKoenig GideonKoenig changed the title __repr__ method to Schema, Row, Column, SupervisedDataset & Table; summay() to Column & Table __repr__ method to Schema, Row, Column, SupervisedDataset & Table; summary() to Column & Table Jan 20, 2023
WinPlay02 added a commit that referenced this issue Jan 27, 2023
…le; summary() to Column & Table (#333)

Closes #319.

### Summary of Changes

- Added `__str__()`, `__repr__()` and `_ipython_display_()` methods to
the classes `Table`, `Column`, `Row`, `TableSchema`and
`SupervisedDataset`.
- Added the method `summary()` to the `Table` class
- Changed the raised error in some of the ColumnStatistics methods from
`TypeError` to `NonNumericColumnError`
- Moved the methods `idness()` and `stability()` from the class `Column`
to `ColumnStatistics`
  - Refactored the test accordingly

### Testing Instructions

Create an instance of one of the mentioned classes and either call the
print method on it or use the jupyter notebook interactive display
method to visualize it in a prettier way.

Co-authored-by: Marvin Walter <walter@zbmed.de>
Co-authored-by: GideonKoenig <GideonKoenig@users.noreply.github.com>
Co-authored-by: WinPlay02 <winplay02_gh@woberlaender.de>
Co-authored-by: SmiteDeluxe <smitedeluxe@gmail.com>
Co-authored-by: SmiteDeluxe <SmiteDeluxe@users.noreply.github.com>
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
3 participants