-
Notifications
You must be signed in to change notification settings - Fork 7
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
update repr_llm
and add DataFrameSummarizer
with customizable summarizing function
#323
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## main #323 +/- ##
==========================================
- Coverage 84.00% 83.90% -0.10%
==========================================
Files 84 85 +1
Lines 3032 3063 +31
==========================================
+ Hits 2547 2570 +23
- Misses 485 493 +8
Continue to review full report in Codecov by Sentry.
|
repr_llm
and add DataFrameSummarizer
with customizable summarizing function
_instance: "DataFrameSummarizer" = None | ||
summarizing_func: Optional[Callable] = None | ||
|
||
def __init__(self, summarizing_func: Optional[Callable] = None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they set it here, shouldn't we not load repr llm's version?
The summarizing_func
passed in is likely overridden by the call within _load_repr_llm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point - updating
Adds a new
src/dx/formatters/summarizing.py
withDataFrameSummarizer
and some convenience functions to allow easier testing of dataframe summary functions.