You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When table cell contains <style> element pandas reads it into DataFrame.
Expected Behavior
I think in most cases we don't want this behavior. I propose to control this using existing argument displayed_only (since <style> element is not displayed) or adding new one e.g. skip_style_elements.
Installed Versions
'2.1.0.dev0+280.g0755f22017.dirty'
The text was updated successfully, but these errors were encountered:
phofl
added
IO HTML
read_html, to_html, Styler.apply, Styler.applymap
and removed
Needs Triage
Issue that has not been reviewed by a pandas team member
labels
Mar 25, 2023
* #52197 bug fix. These styling details aren't intended to be in the DataFrame. When these style elements are encountered upon parsing, the trees rooted in these elements are dropped.
* Removing extraneous line used for testing
* Added an entry in the latest doc file
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
When table cell contains
<style>
element pandas reads it into DataFrame.Expected Behavior
I think in most cases we don't want this behavior. I propose to control this using existing argument
displayed_only
(since<style>
element is not displayed) or adding new one e.g.skip_style_elements
.Installed Versions
The text was updated successfully, but these errors were encountered: