Skip to content

Commit b5078e5

Browse files
committed
set cols/rows back
1 parent 621766c commit b5078e5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/summarizedexperiment/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ def set_column_data_column(self, column: str, value: Any, in_place: bool = False
12321232
or as a reference to the (in-place-modified) original.
12331233
"""
12341234
output = self._define_output(in_place)
1235-
output._cols.set_column(column, value, in_place=in_place)
1235+
output._cols = output._cols.set_column(column, value, in_place=in_place)
12361236
return output
12371237

12381238
def get_row_data_column(self, column: str) -> Any:
@@ -1245,7 +1245,7 @@ def get_row_data_column(self, column: str) -> Any:
12451245
Returns:
12461246
The content of the column.
12471247
"""
1248-
return self._cols.get_column(column)
1248+
return self._rows.get_column(column)
12491249

12501250
def set_row_data_column(self, column: str, value: Any, in_place: bool = False) -> BaseSE:
12511251
"""Set or replace a column in ``row_data``.
@@ -1265,5 +1265,5 @@ def set_row_data_column(self, column: str, value: Any, in_place: bool = False) -
12651265
or as a reference to the (in-place-modified) original.
12661266
"""
12671267
output = self._define_output(in_place)
1268-
output._rows.set_column(column, value, in_place=in_place)
1268+
output._rows = output._rows.set_column(column, value, in_place=in_place)
12691269
return output

0 commit comments

Comments
 (0)