Peek at the data in the table
(self, collection: str = None, n_results: int = 20)
| 71 | return results |
| 72 | |
| 73 | def peek_table(self, collection: str = None, n_results: int = 20) -> pd.DataFrame: |
| 74 | """ |
| 75 | Peek at the data in the table |
| 76 | """ |
| 77 | assert collection is not None, "Collection is required. Should be the path of the paper." |
| 78 | raw_results = self.peek(collection=collection, n_results=n_results) |
| 79 | results = [item['response'] for item in raw_results['metadatas']] |
| 80 | return results |