Skip to content

Commit

Permalink
simplify read_as_pandas_all
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Oct 19, 2022
1 parent b0f4ff5 commit 1606c12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apis/python/src/tiledbsoma/soma_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,16 @@ def read_as_pandas_all(
column_names: Optional[Sequence[str]] = None,
result_order: Optional[SOMAResultOrder] = None,
) -> pd.DataFrame:
"""
This is a convenience method around ``read``. It concatenates all partial read results into a single DataFrame. Its nominal use is to simplify unit-test cases.
"""
return pd.concat(
self.read_as_pandas(
ids=ids,
value_filter=value_filter,
column_names=column_names,
result_order=result_order,
),
ignore_index=True,
)

def write_from_pandas(self, dataframe: pd.DataFrame) -> None:
"""
Expand Down

0 comments on commit 1606c12

Please sign in to comment.