MCPcopy Create free account
hub / github.com/apache/arrow / to_string

Method to_string

cpp/gdb_arrow.py:2269–2278  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2267 yield ("value", col)
2268
2269 def to_string(self):
2270 num_fields = len(self.schema.fields)
2271 num_rows = self.columnar.num_rows
2272 md_items = len(self.schema.metadata)
2273 if md_items > 0:
2274 return (f"arrow::{self.name} with {num_fields} columns, "
2275 f"{num_rows} rows, {md_items} metadata items")
2276 else:
2277 return (f"arrow::{self.name} with {num_fields} columns, "
2278 f"{num_rows} rows")
2279
2280
2281class RecordBatchPrinter(BaseColumnarPrinter):

Callers

nothing calls this directly

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected