Skip to content

Instantly share code, notes, and snippets.

@LosantGists
Created July 23, 2021 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LosantGists/cb8ed46ea0b636c36dd67d1b6adffa3a to your computer and use it in GitHub Desktop.
Save LosantGists/cb8ed46ea0b636c36dd67d1b6adffa3a to your computer and use it in GitHub Desktop.
Automating Unit Tests Blog (13) 7.23.21
def export_summary(summary_series, file_name=SUMMARY_OUTPUT_FILE):
directory = get_output_directory()
output = pd.DataFrame(summary_series).transpose()
output.rename(columns={"25%": "25th", "50%": "50th", "75%": "75th"},inplace=True)
output.to_csv(os.path.join(directory, file_name),index=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment