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

[FEAT] Dynamic Responsive Printing of Tables, Schema and Series #1662

Merged
merged 12 commits into from
Nov 25, 2023

Conversation

samster25
Copy link
Member

@samster25 samster25 commented Nov 23, 2023

  • Implements Terminal (tty) aware printing to avoid wrap arounds
  • Implements dynamic column printing (the wider the terminal, the more columns print)
  • factor out our printing code to be shared between table, series and schema
    Closes: Truncate display for large tables #901

when showing a dataframe:
image

when performing a show:
image

when we resize the terminal: (second call is after zooming out in terminal)
image

and the case when we truncate both rows and columns:
image

@github-actions github-actions bot added the enhancement New feature or request label Nov 23, 2023
@samster25 samster25 changed the title [FEAT] Sammy/dynamic repr tables [FEAT] Dynamic Responsive Printing of Tables, Schema and Series Nov 23, 2023
@samster25 samster25 linked an issue Nov 25, 2023 that may be closed by this pull request
Copy link

codecov bot commented Nov 25, 2023

Codecov Report

Merging #1662 (ecfcb04) into main (ff218e7) will decrease coverage by 0.10%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1662      +/-   ##
==========================================
- Coverage   84.88%   84.78%   -0.10%     
==========================================
  Files          55       55              
  Lines        5318     5318              
==========================================
- Hits         4514     4509       -5     
- Misses        804      809       +5     
Files Coverage Δ
daft/dataframe/dataframe.py 86.07% <0.00%> (ø)

... and 2 files with indirect coverage changes

@samster25 samster25 merged commit f2aac6a into main Nov 25, 2023
38 of 39 checks passed
@samster25 samster25 deleted the sammy/dynamic-repr-tables branch November 25, 2023 03:11
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

Successfully merging this pull request may close these issues.

Truncate display for large tables
1 participant