You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apis/python/src/tiledbsoma/soma_dataframe.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -245,7 +245,7 @@ def read_all(
245
245
"""
246
246
This is a convenience method around ``read``. It iterates the return value from ``read`` and returns a concatenation of all the table-pieces found. Its nominal use is to simply unit-test cases.
Write an Arrow.RecordBatch to the persistent object.
277
277
278
-
:param values: An Arrow.Table containing all columns, including the index columns. The schema for the values must match the schema for the ``SOMADataFrame``.
278
+
:param values: An Arrow.RecordBatch containing all columns, including the index columns. The schema for the values must match the schema for the ``SOMADataFrame``.
279
279
280
-
The ``values`` Arrow Table must contain a ``soma_rowid`` (uint64) column, indicating which rows are being written.
280
+
The ``values`` Arrow RecordBatch must contain a ``soma_rowid`` (uint64) column, indicating which rows are being written.
This is a convenience method around ``read``. It iterates the return value from ``read`` and returns a concatenation of all the table-pieces found. Its nominal use is to simply unit-test cases.
232
-
"""
233
-
returnutil_arrow.concat_tables(
234
-
self.read(
235
-
row_ids=row_ids,
236
-
col_ids=col_ids,
237
-
result_order=result_order,
238
-
)
239
181
)
240
182
241
183
defwrite_tensor(
242
184
self,
243
185
coords: SOMADenseNdCoordinates,
244
-
*,
245
-
row_ids: Optional[Sequence[int]] =None,
246
-
col_ids: Optional[Sequence[int]] =None,
247
-
set_index: Optional[bool] =False,
248
-
) ->pa.Table:
249
-
"""
250
-
This is a convenience method around ``read_as_pandas``. It iterates the return value from ``read_as_pandas`` and returns a concatenation of all the table-pieces found. Its nominal use is to simply unit-test cases.
251
-
"""
252
-
dataframes= []
253
-
generator=self.read_as_pandas(
254
-
row_ids=row_ids,
255
-
col_ids=col_ids,
256
-
set_index=set_index,
257
-
)
258
-
fordataframeingenerator:
259
-
dataframes.append(dataframe)
260
-
returnpd.concat(dataframes)
261
-
262
-
defwrite(
263
-
self,
264
-
# TODO: rework callsites with regard to the very latest spec rev
Copy file name to clipboardExpand all lines: apis/python/src/tiledbsoma/soma_indexed_dataframe.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -281,7 +281,7 @@ def read_all(
281
281
"""
282
282
This is a convenience method around ``read``. It iterates the return value from ``read`` and returns a concatenation of all the table-pieces found. Its nominal use is to simply unit-test cases.
This is a convenience method around ``read``. It iterates the return value from ``read`` and returns a concatenation of all the table-pieces found. Its nominal use is to simply unit-test cases.
Return the sparse array as a single Pandas DataFrame containing COO data.
317
-
This is a convenience method around ``read_as_pandas``. It iterates the return value from ``read_as_pandas`` and returns a concatenation of all the table-pieces found. Its nominal use is to simply unit-test cases.
Iterates a generator of ``pyarrow.Table`` (e.g. ``SOMADataFrame.read``) and returns a concatenation of all the table-pieces found. The nominal use is to simply unit-test cases.
0 commit comments