I am trying to use a string created by rendering a stylist in an email. It seems very difficult to get this to ignore the dataframe index.
table_styles = [dict(selector="tbody tr th", props=[("display", "none")]), st=df.style.set_table_styles(table_styles) st.render()
I was able to customize how CSS customization works without rendering, but it works differently on different devices based on the level of CSS support.Isn't there a way to make the index payload just go away?
, , , , ( ). , -, .
html.render().split('\n'), , ( resent_index).
html.render().split('\n')
, , CSS .
# define the style related to first column and index here # first-element : when index =True, # second element: default index of the table generated by the Style styles = [ dict(selector = ".col0", props = [('display', 'none')]), dict(selector = "th:first-child", props = [('display', 'none')]) ] # set the table styles here table.set_table_styles(styles)
Source: https://habr.com/ru/post/1623703/More articles:Where is the Spark RDD line stored? - apache-sparkEqual spacing between elements inside RecyclerView using StaggeredGridLayoutManager? - androidTable does not disappear when calling AJAX - javascriptHow to reload a value in only one row of a table - javascriptLaravel5 Unit Тестирование формы входа в систему - unit-testingAutomation in Go Lang - How to use browser automation like Selenium? - browserDetect volume and button presses on Siri Remote - tvosgo language Test Automation - gousing multiple background colors on the Internet - htmlPHP fileinfo extension not installed in Yii2 - yii2All Articles