Skip to content

Commit

Permalink
Update sort field
Browse files Browse the repository at this point in the history
Use startDate field instead of creationDate for sorting
  • Loading branch information
jameno committed Oct 5, 2019
1 parent aca8d00 commit 370b055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apple_health_xml_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def convert_xml():
health_df = health_df.reindex(labels=reordered_cols, axis='columns')

# Sort by newest data first
health_df.sort_values(by='creationDate', ascending=False, inplace=True)
health_df.sort_values(by='startDate', ascending=False, inplace=True)

print("done!")

Expand Down

0 comments on commit 370b055

Please sign in to comment.