Skip to content

Commit

Permalink
remove droping Error column
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Palazzo committed Oct 31, 2023
1 parent 193ed6d commit b0cc020
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion sdmetrics/reports/multi_table/_properties/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from sdmetrics.reports.multi_table._properties.column_shapes import ColumnShapes
from sdmetrics.reports.multi_table._properties.coverage import Coverage
from sdmetrics.reports.multi_table._properties.inter_table_trends import InterTableTrends
from sdmetrics.reports.multi_table._properties.relationship_validity import RelationshipValidity
from sdmetrics.reports.multi_table._properties.structure import Structure
from sdmetrics.reports.multi_table._properties.synthesis import Synthesis
from sdmetrics.reports.multi_table._properties.relationship_validity import RelationshipValidity

__all__ = [
'BaseMultiTableProperty',
Expand Down
3 changes: 0 additions & 3 deletions sdmetrics/reports/multi_table/_properties/cardinality.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ def _generate_details(self, real_data, synthetic_data, metadata, progress_bar=No
'Error': error_messages,
})

if self.details['Error'].isna().all():
self.details = self.details.drop('Error', axis=1)

def _get_table_relationships_plot(self, table_name):
"""Get the table relationships plot from the parent child relationship scores for a table.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ def _generate_details(self, real_data, synthetic_data, metadata, progress_bar=No
'Error': error_messages,
})

if self.details['Error'].isna().all():
self.details = self.details.drop('Error', axis=1)

def _get_table_relationships_plot(self, table_name):
"""Get the table relationships plot from the parent child relationship scores for a table.
Expand Down

0 comments on commit b0cc020

Please sign in to comment.