Skip to content

Instantly share code, notes, and snippets.

View BhargavaSwamy's full-sized avatar

Swamy BhargavaSwamy

View GitHub Profile
@thomaswilley
thomaswilley / applehealth.py
Last active May 29, 2024 14:15
Get Apple Health data as Pandas DataFrame
# Get Apple Health data as Pandas DataFrame
# ===
# pre-reqs: python3, lxml, pandas
# to get started:
# export and mail yourself your data following steps within the Health app on iPhone
# download and unzip contents of exported zip file; find path to export.xml and set path_to_exportxml below
import pandas as pd
import xml.etree.ElementTree
import datetime