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

Set reasonable defaults for pandas dataframe default renderer #1238

Merged
merged 2 commits into from
Oct 18, 2022

Conversation

eapolinario
Copy link
Collaborator

@eapolinario eapolinario commented Oct 17, 2022

TL;DR

pandas dataframe default renderer should be cheap to render

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

The default deck renderer for pandas dataframes relies on pandas dataframe to_html, but big dataframes take a long time to return, so in this PR we set reasonable defaults for both the max number of rows and columns.

Tracking Issue

https://github.com/flyteorg/flyte/issues/

Follow-up issue

NA
OR
https://github.com/flyteorg/flyte/issues/

@codecov
Copy link

codecov bot commented Oct 17, 2022

Codecov Report

Merging #1238 (58c4236) into master (ab9aa65) will increase coverage by 0.00%.
The diff coverage is 76.47%.

@@           Coverage Diff           @@
##           master    #1238   +/-   ##
=======================================
  Coverage   68.68%   68.68%           
=======================================
  Files         288      288           
  Lines       26323    26333   +10     
  Branches     2939     2942    +3     
=======================================
+ Hits        18079    18087    +8     
- Misses       7766     7768    +2     
  Partials      478      478           
Impacted Files Coverage Δ
flytekit/deck/renderer.py 28.57% <33.33%> (+0.79%) ⬆️
tests/flytekit/unit/deck/test_renderer.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

pingsutw
pingsutw previously approved these changes Oct 17, 2022
wild-endeavor
wild-endeavor previously approved these changes Oct 17, 2022
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
@eapolinario eapolinario merged commit 3eb29f8 into master Oct 18, 2022
VPraharsha03 pushed a commit to VPraharsha03/flytekit that referenced this pull request Oct 29, 2022
…rg#1238)

* Set reasonable defaults for pandas dataframe default renderer

* Remove erroneous use of Optional

Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>

Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Co-authored-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: Vivek Praharsha <vpraharsha@outlook.com>
kiliangojek pushed a commit to kiliangojek/flytekit that referenced this pull request Nov 15, 2022
…rg#1238)

* Set reasonable defaults for pandas dataframe default renderer

* Remove erroneous use of Optional

Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>

Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Co-authored-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: Kilian <kilian.tep@go-jek.com>
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

Successfully merging this pull request may close these issues.

3 participants