mHealth core

Data validation, io and conversion to mhealth specification

mhealth.validate()

Validate filename or dataframe against mhealth specification

mhealth.read()

Write files in mhealth specification into dataframe

mhealth.write()

Write dataframe to csv in mhealth specification

mhealth.convert()

Convert dataframe to be compatible with mhealth specification

mHealth manipulation

Data operations for dataframes in mhealth specification

mhealth.segment()

segment dataframe in mhealth specification by time window

mhealth.clip()

Clip mhealth dataframe to the given start and stop time

mhealth.extract_characteristics()

extract data characteristics (time or spectrum) from each column of a sensor, feature or annotation data file

annotation manipulation

Data operations for annotation data file

mhealth.combine_annotation()

Combine annotation rows into mutually exclusive format

mHealth visualization

Data visualization for dataframes in mhealth specification

mhealth.plot_instance()

Plot instance (each row in a feature data file) with bar chart, so taht easy to analyze and compare features for different instances.

mhealth.plot_timeseries()

Plot time series with annotations

timezone

Utility to get time zone information. The timezone database is extracted from https://timezonedb.com and will be kept updating with every version release.

timezone.to_abbr()

Convert offset string: "[+/-]HHMM" or offset value in hours: +16, -5.5, to timezone abbreviation strings

timezone.to_location()

Convert offset string: "[+/-]HHMM" or offset value in hours: +16, -5.5, to timezone location strings