Skip to main content

minder.research-data-snapshots

Install

python -m pip install minder.research-data-snapshots

This will provide exports in Parquet format, which should be sufficient if you're using Pandas or another dataframe library.

If you require exports in CSV format then use:

python -m pip install 'minder.research-data-snapshots[csv]'

Use

First retrieve an access token from https://research.minder.care/

Then use one of the following methods to retrieve data snapshots

CLI

python -m minder.research_data_snapshots --dataset patients raw_heart_rate --organization SABP "H&F" --token-path /path/to/access/token

Run python -m minder.research_data_snapshots --help to see all options

Library

python -m pip install 'pandas[parquet]'
export RESEARCH_PORTAL_TOKEN_PATH=/path/to/access/token
from datetime import datetime

import pandas as pd

from minder.research_data_snapshots import download_datasets

patients = pd.concat(pd.read_parquet(dataset) for dataset in download_datasets(["patients"], ["SABP", "H&F"]))

raw_heart_rate = (
    pd.concat(
        pd.read_parquet(
            path,
            filters=[
                ("start_date", ">=", datetime.fromisoformat("2023-01-01T00Z")),
                ("start_date", "<", datetime.fromisoformat("2024-01-01T00Z")),
            ],
            columns=["patient_id", "start_date", "value"],
        )
        for path in download_datasets(["raw_heart_rate"], ["SABP", "H&F"])
    )
    .sort_values("start_date")
    .reset_index(drop=True)
)

Metadata

Release files for minder.research-data-snapshots 0.23.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minder.research-data-snapshots 0.23.0
File Size Uploaded
minder_research_data_snapshots-0.23.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for minder.research-data-snapshots 0.23.0
File Interpreter ABI Platform
minder_research_data_snapshots-0.23.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / minder_research_data_snapshots-0.23.0.tar.gz

Download URL minder_research_data_snapshots-0.23.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9779dd7b20478c2edb6178b59d43558f9ded9c87aee4b621f88bbecde836bfa8
BLAKE2b-256 checksum
How to use checksums
5b2571e2ccc2ac4bcaaa886000dbf7e1a2d0f1a07f1463613539b11fc55b03c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / minder_research_data_snapshots-0.23.0-py3-none-any.whl

Download URL minder_research_data_snapshots-0.23.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b42d35d5ec0acd795bbaac344a436849e49cc670267e1d7c8cca7b1338bf3593
BLAKE2b-256 checksum
How to use checksums
8a23da7c091f45e81f2a2d1c832121f0d79771ed0271513190bca30efe9dbdf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.23.0 This release

2 release files

0.22.0

2 release files

0.21.0

2 release files

0.18.0

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.12

2 release files

0.11

1 release file

0.10

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page