File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -103,19 +103,19 @@ def picture(
103103
104104 def table (self , data : DataFrame , ** kwargs : Unpack [TableProps ]) -> Self :
105105 rows , cols = len (data ), len (data [0 ])
106- props : TableData = {"type" : "table" , "data" : data , ** kwargs }
106+ table_data : TableData = {"type" : "table" , "data" : data , ** kwargs }
107107
108108 self ._shape_registry .append (
109109 lambda slide : Table (
110110 slide .shapes .add_table (
111111 rows ,
112112 cols ,
113- to_pptx_length (props ["left" ]),
114- to_pptx_length (props ["top" ]),
115- to_pptx_length (props ["width" ]),
116- to_pptx_length (props ["height" ]),
113+ to_pptx_length (table_data ["left" ]),
114+ to_pptx_length (table_data ["top" ]),
115+ to_pptx_length (table_data ["width" ]),
116+ to_pptx_length (table_data ["height" ]),
117117 ),
118- props ,
118+ table_data ,
119119 )
120120 )
121121 return self
You can’t perform that action at this time.
0 commit comments