We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c106c8 commit d77a9f1Copy full SHA for d77a9f1
pandas/formats/style.py
@@ -631,11 +631,17 @@ def set_table_attributes(self, attributes):
631
632
Parameters
633
----------
634
- precision: int
+ attributes : string
635
636
Returns
637
-------
638
self : Styler
639
+
640
+ Examples
641
+ --------
642
+ >>> df = pd.DataFrame(np.random.randn(10, 4))
643
+ >>> df.style.set_table_attribute('class="pure-table"')
644
+ # ... <table class="pure-table"> ...
645
"""
646
self.table_attributes = attributes
647
return self
0 commit comments