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

Method get_columns

python/pyarrow/interchange/dataframe.py:149–156  ·  view source on GitHub ↗

Return an iterator yielding the columns.

(self)

Source from the content-addressed store, hash-verified

147 allow_copy=self._allow_copy)
148
149 def get_columns(self) -> Iterable[_PyArrowColumn]:
150 """
151 Return an iterator yielding the columns.
152 """
153 return [
154 _PyArrowColumn(col, allow_copy=self._allow_copy)
155 for col in self._df.columns
156 ]
157
158 def select_columns(self, indices: Sequence[int]) -> _PyArrowDataFrame:
159 """

Callers 1

test_get_columnsFunction · 0.80

Calls 1

_PyArrowColumnClass · 0.90

Tested by 1

test_get_columnsFunction · 0.64