Skip to content
Snippets Groups Projects
Commit 8a909a9f authored by dmt's avatar dmt
Browse files

Make new block from row indices.

parent 0ee66d4d
No related branches found
No related tags found
No related merge requests found
......@@ -98,6 +98,10 @@ class PandasBlock:
def rows(self):
return self.__data_block.shape[1]
def new_block_from_rows_index(self, indices: List[int]):
data_from = self.__data_block.loc[indices]
return PandasBlock(data_from)
def new_block_from(self, column_values):
data_from = self.__data_block.loc[self.__data_block["T"].isin(
column_values)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment