File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 34
34
import pandas as pd
35
35
from pandas .api .types import is_dict_like , is_list_like
36
36
import pandas .core .common as com
37
+ from pandas .core .frame import DataFrame
37
38
from pandas .core .generic import _shared_docs
38
39
from pandas .core .indexing import _maybe_numeric_slice , _non_reducing_slice
39
40
@@ -555,16 +556,18 @@ def render(self, **kwargs) -> str:
555
556
d .update (kwargs )
556
557
return self .template .render (** d )
557
558
558
- def _update_ctx (self , attrs : FrameOrSeries ) -> None :
559
+ def _update_ctx (self , attrs : DataFrame ) -> None :
559
560
"""
560
561
Update the state of the Styler.
561
562
562
563
Collects a mapping of {index_label: ['<property>: <value>']}.
563
564
564
- attrs : Series or DataFrame
565
- should contain strings of '<property>: <value>;<prop2>: <val2>'
566
- Whitespace shouldn't matter and the final trailing ';' shouldn't
567
- matter.
565
+ Parameters
566
+ ----------
567
+ attrs : DataFrame
568
+ should contain strings of '<property>: <value>;<prop2>: <val2>'
569
+ Whitespace shouldn't matter and the final trailing ';' shouldn't
570
+ matter.
568
571
"""
569
572
for row_label , v in attrs .iterrows ():
570
573
for col_label , col in v .items ():
You can’t perform that action at this time.
0 commit comments