Fix - tablereport plots fail when dataframe contains $$ as values #2154
Conversation
…parse_math` : False for mathematical expressions in _MATPLOTLIB_RC_PARAMS = {
| contains an inner transformer that has a ``score`` method has been fixed. | ||
| :pr:`2052` by :user:`Jérôme Dockès <jeromedockes>`. | ||
| An error that could arise when generating the frame with reports may fail when text is containing $$ has been fixed. | ||
| :pr:`2097` by :user:`Katerina Michenina <Michenina-Lab>`, :user: `<CecilyTS>`, :user: `Eve Rabin <eve2705>`. |
There was a problem hiding this comment.
2097 is the issue number, not the PR number! This is PR 2154 (cf. URL)
| - An error that could arise when calling ``score`` on a ``SkrubLearner`` that | ||
| contains an inner transformer that has a ``score`` method has been fixed. | ||
| :pr:`2052` by :user:`Jérôme Dockès <jeromedockes>`. | ||
| An error that could arise when generating the frame with reports may fail when text is containing $$ has been fixed. |
There was a problem hiding this comment.
| An error that could arise when generating the frame with reports may fail when text is containing $$ has been fixed. | |
| An error that could arise when running `TableReport` on dataframes containing | |
| double dollar (`$$`) signs has been fixed. |
|
Hi @Michenina-Lab, as we discussed in the issue this should merge upstream after #2159 is merged and the minimum matplotlib version becomes 3.6. That should let the tests pass. |
There was a problem hiding this comment.
Could you move the test case in in skrub/_reporting/tests/test_summarize.py?
something like this would work:
def test_dollar_sign(df_module):
df = df_module.make_dataframe(
{
"text": [
"hello world",
"foo bar",
"this is not latex $$ just a double dollar sign",
]
}
)
summarize_dataframe(df, with_plots=True, title=None, verbose=0)df_module is needed to make sure that the the tests run with both pandas and polars
then this file can be removed
jeromedockes
left a comment
There was a problem hiding this comment.
thank you @Michenina-Lab !
Big thanks for your help and guidance, @jeromedockes, @rcap107, @emassoulie ! |
|
Thank you @Michenina-Lab! |
Bug Fix Pull Request
Description
An error that could arise when generating the frame with reports may fail when text is containing $$ has been fixed.fixes #2097
Checklist
How Has This Been Tested?
Tested using test_summarize_dataframe.py