Skip to content

Commit

Permalink
Multiple FutureWarning lines printed out when running the Quality …
Browse files Browse the repository at this point in the history
…Report (Intertable Trends property) (#491)
  • Loading branch information
frances-h authored Nov 1, 2023
1 parent 82c9c65 commit 8815855
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,12 @@ def _generate_details(self, real_data, synthetic_data, metadata, progress_bar=No
details['Child Table'] = child
details['Foreign Key'] = foreign_key
if not details.empty:
details['Column 1'] = details['Column 1'].str.replace(f'{parent}.', '', n=1)
details['Column 2'] = details['Column 2'].str.replace(f'{child}.', '', n=1)
details['Column 1'] = details['Column 1'].str.replace(
f'{parent}.', '', n=1, regex=False
)
details['Column 2'] = details['Column 2'].str.replace(
f'{child}.', '', n=1, regex=False
)
all_details.append(details)

self.details = pd.concat(all_details, axis=0).reset_index(drop=True)
Expand Down

0 comments on commit 8815855

Please sign in to comment.