Skip to content

Commit

Permalink
more infomrative cout table headers
Browse files Browse the repository at this point in the history
  • Loading branch information
turbomam committed Feb 15, 2024
1 parent ce03341 commit dd841ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nmdc_ontology/report_instantiated_traids.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def main(api_url, output_file, counts_output_file):
counts_df = pd.DataFrame(value_counts.items(), columns=['Value', 'Count'])

# Split the 'Value' column into two parts before and after the colon
counts_df[['Before Colon', 'After Colon']] = counts_df['Value'].str.split(':', n=1, expand=True)
counts_df[['ontology', 'local_id']] = counts_df['Value'].str.split(':', n=1, expand=True)

# Save counts DataFrame to a TSV file
counts_df.to_csv(counts_output_file, sep="\t", index=False)
Expand Down
2 changes: 1 addition & 1 deletion triad_term_counts.tsv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Value Count Before Colon After Colon
Value Count ontology local_id
ENVO:01000253 1040 ENVO 01000253
ENVO:01000621 17 ENVO 01000621
ENVO:01000017 52 ENVO 01000017
Expand Down

0 comments on commit dd841ca

Please sign in to comment.