这个软件包提供了一些基本工具来分析从apple health下载的csv文件中的健康数据。

myFitness的Python项目详细描述


myfitness:分析苹果健康数据的工具


生成戳记Build Status


苹果健康追踪系统是一个由莉莎·伍德和利尔达尔合作的项目。

myfitness包提供了一些基本工具来分析从apple health下载的csv文件中的运行状况数据。这些工具可以用来分析和比较来自多个人的数据。

healthdata

  • 包含两个模块
    1. data-包含个人的姓名、年龄和性别(“超类”)以及使用pandas读取csv健康数据文件的方法
    2. chart-使用pygal向用户提供交互式条形图

summary

  • 包含两个模块
    1. table-返回每月平均步数的摘要数据框
    2. ^ 的最大和最小数目的函数

包装结构

myfitness-->;包

  • healthdata-->;子包

    • data-->;模块
    • chart-->;模块
  • summary-->;子包

    • table-->;模块
    • maxmin-->;模块

套餐详情

下面介绍myfitness的包函数。此存储库中包含的测试文件也演示了包的使用。

healthdata

此子包为用户提供了一种导入数据以及交互式查看数据的方法。

关于healthdata子包中data模块的详细描述如下:

Class/FunctionDescriptionParametersReturn
^{}Create an object of class Person() to be used in further analysis. The 'display' function displays the name, age and gender of a Person() objectname, age, genderAn object of class Person with name, age and gender attributes
^{}Create a object of class healthdata() this inherits from the superclass Person()name, age, gender, file (downloaded from Apple Health, as CSV)Display of healthdata object attributes name, age, gender and dataframe containing healthdata() object file

关于healthdata子包中chart函数的详细描述如下:

FunctionDescriptionParametersReturn
^{}Creates an interactive bar graph using pygalcolumnX as list of strings, columnY as list of values, xlabel as string, ylabel as string, filename.svg file with xlabel, ylabel, title, and filename

summary

此子包为用户提供一些基本的统计分析工具,以查看从Apple Health提取的数据。

关于summary子包中table函数的详细描述如下:

FunctionDescriptionParametersReturn
^{}Function to summarize the average number of steps taken per month using the pandas packagedata: Apple Health .csv file imported as a Pandas DataFrameA Pandas dataframe, summarizing the average number of steps taken by month, indicated by the last date of the month.

有关summary子包中maxMin函数的详细说明如下:

FunctionDescriptionParametersReturn
^{}Find the maximum number of steps in the data and the date it was achieved.data: Pandas DataFrame containing Apple Health data imported from a CSV file.The row of values for when the maximum number of steps were achieved:Start date, Finish date,Distance(mi), Steps (count)
^{}Find the maximum number of steps in the data and the date it was achieved.data: Pandas DataFrame containing Apple Health data imported from a CSV file.The row of values for when the maximum number of steps were achieved:Start date, Finish date, Distance(mi), Steps (count)

测试

myfitness_tests包含必要的测试套件和类,以验证包是否正常工作。共有四个类执行单元测试和套件。

测试套件封面报告Coverage Report

要求

此包需要以下Python模块:

  • 努比
  • 熊猫
  • 皮加尔
  • 伊普顿
  • cairosvg

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java我是否需要构造一个带有*非final*但不可变字段的不可变类?   java如何使用jaxb读取属性?   java为什么不打印空值以外的任何内容?   java Struts2如何在不使用struts的情况下重定向到操作。xml?   java方法参数未在其实现中使用   在Java中更改终端内部的变量   Spring中的java依赖项注入失败   java如何使用getAttribute Selenium防止获取重复的HREF   优先级队列的java顺序不符合预期   java如何使用Spring TaskExecutor在应用程序的所有请求中使用单个任务池   java Firebase RecyclerView不会从数据库中检索项目并将其显示在屏幕上。屏幕是空的   java将YUV_420_888转换为字节数组   spring停止使用Java缓存文件   java在执行maven clean安装时,我在eclipse智能家居中遇到了这种错误   stream Java=下载缓冲区未满?冲洗/缓冲是如何工作的?   查询SQL server时重置java JDBC连接   java如何避免在两个函数中使用相同的逻辑。   转换java。lang.Boolean到Scala Boolean