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

Method get_strcols

pandas/io/formats/format.py:472–482  ·  view source on GitHub ↗

Render a DataFrame to a list of columns (as lists of strings).

(self)

Source from the content-addressed store, hash-verified

470 self.adj = printing.get_adjustment()
471
472 def get_strcols(self) -> list[list[str]]:
473 """
474 Render a DataFrame to a list of columns (as lists of strings).
475 """
476 strcols = self._get_strcols_without_index()
477
478 if self.index:
479 str_index = self._get_formatted_index(self.tr_frame)
480 strcols.insert(0, str_index)
481
482 return strcols
483
484 @property
485 def should_show_dimensions(self) -> bool:

Callers 1

_get_strcolsMethod · 0.80

Calls 3

_get_formatted_indexMethod · 0.95
insertMethod · 0.45

Tested by

no test coverage detected