From b92eb91feb3b4a83c6ad74c4b9c5af65dcbc21f8 Mon Sep 17 00:00:00 2001 From: Arjit Shukla <129896413+arjitshu@users.noreply.github.com> Date: Fri, 14 Apr 2023 20:31:23 +0530 Subject: [PATCH] feat: Option for simpler report output grid (#802) --- data_validation/result_handlers/text.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data_validation/result_handlers/text.py b/data_validation/result_handlers/text.py index 72d532055..037dd7a81 100644 --- a/data_validation/result_handlers/text.py +++ b/data_validation/result_handlers/text.py @@ -45,11 +45,11 @@ def print_formatted_(self, result_df): result_df = filter_validation_status(self.status_list, result_df) if self.format == "text": - print(result_df.to_string(index=False)) + print(result_df.drop(self.cols_filter_list, axis=1).to_string(index=False)) elif self.format == "csv": - print(result_df.to_csv(index=False)) + print(result_df.drop(self.cols_filter_list, axis=1).to_csv(index=False)) elif self.format == "json": - print(result_df.to_json(orient="index")) + print(result_df.drop(self.cols_filter_list, axis=1).to_json(orient="index")) else: print( result_df.drop(self.cols_filter_list, axis=1).to_markdown(