Skip to content
Snippets Groups Projects
Commit 57f094c1 authored by dmt's avatar dmt
Browse files

Return the indexes of PandasBlock as tuple.

parent 6b7ddc7a
No related branches found
No related tags found
No related merge requests found
......@@ -69,11 +69,14 @@ class PandasBlock:
def get_duplicated_pairs(self, *args):
bool_series = self.__data_block.duplicated(subset=[args[0], args[1]])
duplicates = self.__data_block[bool_series]
for i, j in zip(duplicates[args[0]], duplicates[args[1]]):
yield i, j
@property
def indexes(self):
return tuple(self.__data_block.index)
def get_values(self, **kwargs):
t, z, sigma = kwargs.get("T"), kwargs.get("Z"), kwargs.get("Sigma")
......
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