MCPcopy
hub / github.com/pandas-dev/pandas / _compute

Method _compute

pandas/io/formats/style_render.py:268–283  ·  view source on GitHub ↗

Execute the style functions built up in `self._todo`. Relies on the conventions that all style functions go through .apply or .map. The append styles to apply as tuples of (application method, *args, **kwargs)

(self)

Source from the content-addressed store, hash-verified

266 return self.template_string.render(**d)
267
268 def _compute(self):
269 """
270 Execute the style functions built up in `self._todo`.
271
272 Relies on the conventions that all style functions go through
273 .apply or .map. The append styles to apply as tuples of
274
275 (application method, *args, **kwargs)
276 """
277 self.ctx.clear()
278 self.ctx_index.clear()
279 self.ctx_columns.clear()
280 r = self
281 for func, args, kwargs in self._todo:
282 r = func(self)(*args, **kwargs)
283 return r
284
285 def _translate(
286 self,

Callers 15

_renderMethod · 0.95
__init__Method · 0.80
test_clearFunction · 0.80
test_apply_map_headerFunction · 0.80
test_apply_map_header_miFunction · 0.80
test_set_propertiesMethod · 0.80
test_apply_axisMethod · 0.80
test_apply_subsetMethod · 0.80

Calls 2

clearMethod · 0.80
funcFunction · 0.50

Tested by 15

test_clearFunction · 0.64
test_apply_map_headerFunction · 0.64
test_apply_map_header_miFunction · 0.64
test_set_propertiesMethod · 0.64
test_apply_axisMethod · 0.64
test_apply_subsetMethod · 0.64
test_map_subsetMethod · 0.64