Skip to main content

DataWhys Python SDK

DataWhys Python SDK is a python wrapper for the DataWhys API that provides additional functionality such as dataframe ingest and one-off processing

Installation

Use the package manager pip to install datawhys.

pip install datawhys

Dependencies

Install from source

In the mondobrain-python directory (same directory as this README.md file), run this command in your terminal:

pip install -e .

Usage

import datawhys as dw

# Set your credentials
dw.api_key = "<API-KEY>"

# Build a pandas dataframe and store in `df` (not shown)

# Convert your pandas df to a datawhys df
dwf = dw.DataWhysFrame(df)

# Select a column as your outcome column & specify a target class
outcome = dwf["column_name"]

# for a discrete column
outcome.target_class = "Some_modality"

# for a continuous column the value should be `min` or `max`
outcome.target_class = "max"

# Get a dataframe of all columns you want to explor
explorable = dwf[["column_a", "column_b"]]

# Create a solver instance
solver = dw.Solver()

# Fit your data
solver.fit(explorable, outcome)

# Check your results
solver.rule

See documentation and SDK Example.ipynb in the mondobrain-python directory for more in depth examples.

The package includes documentation to provide explanation and examples of usage.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Take a look at CONTRIBUTING.md for more info

Please make sure to update tests as appropriate.

License

MIT

Metadata

Release files for datawhys 0.4.1

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

Source distribution (sdist)

Source distribution for datawhys 0.4.1
File Size Uploaded Provenance Actions
datawhys-0.4.1.tar.gz 44.3 kB Without provenance Details for datawhys-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datawhys 0.4.1
File Interpreter ABI Platform Actions
datawhys-0.4.1-py3-none-any.whl Python 3 none any Details for datawhys-0.4.1-py3-none-any.whl

Total release size: 244.7 kB

Release files / datawhys-0.4.1.tar.gz

Download URL datawhys-0.4.1.tar.gz
Size 44.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b592a8df37cb52e72ad1032035a31f8019df36cef8e4608b7933810b9478aafd
BLAKE2b-256 checksum
How to use checksums
5c047e0097ce7c29914a2d51d81545470ce8a43259d18400cd6eedc2eed408de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.0 importlib-metadata/4.8.3 keyring/21.8.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15

Release files / datawhys-0.4.1-py3-none-any.whl

Download URL datawhys-0.4.1-py3-none-any.whl
Size 200.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40b3f534ea8c9e5a43193f671d5699b537cb758e078a8ec40f43f9688bf9ad67
BLAKE2b-256 checksum
How to use checksums
22e4c46441044c8b382a17fb21466d9b4024669733932159579ad4236d0134b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.0 importlib-metadata/4.8.3 keyring/21.8.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15

Security for datawhys 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files No provenance

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