Skip to content

Commit

Permalink
feat: Option for simpler report output grid (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjitshu committed Apr 14, 2023
1 parent ad0e64f commit b92eb91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data_validation/result_handlers/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b92eb91

Please sign in to comment.