Skip to main content

DataWhys API wrapper

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datawhys_sdk-0.5.2.tar.gz (183.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datawhys_sdk-0.5.2-py3-none-any.whl (194.8 kB view details)

Uploaded Python 3

File details

Details for the file datawhys_sdk-0.5.2.tar.gz.

File metadata

  • Download URL: datawhys_sdk-0.5.2.tar.gz
  • Upload date:
  • Size: 183.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for datawhys_sdk-0.5.2.tar.gz
Algorithm Hash digest
SHA256 ba45863195a756a51708719239e78702960da2050f0e106791c2b8a1fe3f4ee0
MD5 73847e3500c914d1460e9a1fa4f9e778
BLAKE2b-256 722be9b98d3da7838325e56798a0819b52339f2ea963d5138a149e7798d6b6e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for datawhys_sdk-0.5.2.tar.gz:

Publisher: publish.yml on datawhys/datawhys-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datawhys_sdk-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: datawhys_sdk-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 194.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for datawhys_sdk-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e117c687e0edda850d9de227b3a5d1b96ab8e4c4b5e9edd6d1c2e269124f7c69
MD5 4bf5fc23785dd47ee902e260d12df9f5
BLAKE2b-256 aef42e9f7b00d71079f17fa29ab0478208dd84acdc7ba9088dbd59e4226eead4

See more details on using hashes here.

Provenance

The following attestation bundles were made for datawhys_sdk-0.5.2-py3-none-any.whl:

Publisher: publish.yml on datawhys/datawhys-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page