Skip to content

Commit

Permalink
sort the abbreviations in the output markdown table
Browse files Browse the repository at this point in the history
  • Loading branch information
PietrH committed Apr 21, 2020
1 parent 3396de6 commit bc85ace
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions csv_to_markdown_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def format_reference(link):
return "[reference]"+"("+str(link)+")"
## apply function
df["Reference_Link"] = list(map(format_reference, df["Reference_Link"]))
# sort values
df = df.sort_values('Abbreviation')
# append a numpy array with n times the header seperator, with n being the
# number of columns then store this array as a pandas dataframe with setting the
# header to the original header
Expand Down

0 comments on commit bc85ace

Please sign in to comment.