Skip to content

Commit

Permalink
Use display()to show the vis
Browse files Browse the repository at this point in the history
  • Loading branch information
roquelopez committed May 31, 2024
1 parent f75d411 commit 14853b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bdikit/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def load_dataset(self, dataset_path):
def reduce_scope(self):
self.scope_manager = ScopeReducingManager(self.dataset, self.global_table)
self.reduced_scope = self.scope_manager.reduce()
return plot_reduce_scope(self.reduced_scope, self.dataset)
plot_reduce_scope(self.reduced_scope, self.dataset)

def map_columns(self, algorithm='SimFloodAlgorithm'):
self.column_manager = ColumnMappingManager(self.dataset, self.global_table, algorithm)
Expand Down
3 changes: 1 addition & 2 deletions bdikit/visualization/mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@

def plot_reduce_scope(reduced_scope, dataset):
scope_explorer = ScopeReducerExplorer(dataset, reduced_scope)
return scope_explorer.explore()
display(scope_explorer.explore())

def plot_column_mappings(column_mappings):
column_mappings_df = pd.DataFrame(column_mappings.items(), columns=['Original Column', 'Target Column'])
display(column_mappings_df)


def plot_value_mappings(value_mappings, include_unmatches=True):
sorted_results = sorted(value_mappings.items(), key=lambda x: x[1]['coverage'], reverse=True)

Expand Down

0 comments on commit 14853b5

Please sign in to comment.