Skip to content

Commit 29d81f3

Browse files
chris-b1jreback
authored andcommitted
DOC: Styler.set_table_attributes docstring
Author: Chris <[email protected]> Closes #15545 from chris-b1/styler-docstring and squashes the following commits: d77a9f1 [Chris] DOC: Style.set_table_attributes docstring
1 parent 5441d39 commit 29d81f3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/formats/style.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -631,11 +631,17 @@ def set_table_attributes(self, attributes):
631631
632632
Parameters
633633
----------
634-
precision: int
634+
attributes : string
635635
636636
Returns
637637
-------
638638
self : Styler
639+
640+
Examples
641+
--------
642+
>>> df = pd.DataFrame(np.random.randn(10, 4))
643+
>>> df.style.set_table_attributes('class="pure-table"')
644+
# ... <table class="pure-table"> ...
639645
"""
640646
self.table_attributes = attributes
641647
return self

0 commit comments

Comments
 (0)