Skip to main content

Pd auto_ml provides a pandas dataframe accessor to allow using dataframes with MindsDB (either the local native library or a local or remote mindsdb server)

Project description

Python MindsDB SDK

It enables you to connect to a midnsDB server and use it in a similar way to mindsb_native.

Install

pip install mindsdb-client

example of usage

from mindsdb_client import MindsDB

# connect
mdb = MindsDB(server='https://mindsdb.com', params={'email': 'test@email.com', 'password': 'secret'})

# upload datasource
mdb.datasources.add('rentals_ds', path='home_rentals.csv')

# create a new predictor and learn to predict
predictor = mdb.predictors.learn(
    name='home_rentals_price',
    data_source_name='rentals_ds',
    to_predict=['rental_price']
)

# predict
result = predictor.predict({'number_of_rooms': '2','number_of_bathrooms': '1', 'sqft': '1190'})

tests

Before run tests, change SERVER and CREDENTIAL constants in tests/test.py to relevant. After run python3 tests/test.py
Test file - is a place where you can find some examples of api usage.

API Reference

class MindsDB(server: str, params: dict)

class DataSources()

class DataSource()

class Predictors()

class Predictor()

class Proxy()

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

pd_auto_ml-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file pd_auto_ml-0.1.0.tar.gz.

File metadata

  • Download URL: pd_auto_ml-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for pd_auto_ml-0.1.0.tar.gz
Algorithm Hash digest
SHA256 34e1f2141c5eab38f66731b1c75ca9d6b3f2736efbc978bcbd5a5e5aea40af13
MD5 5bc4f015ac71862dd1d97374908a3fe2
BLAKE2b-256 45190edeb1b46c15515b27fd91647812a51de0fdfd17ee80aba361b7059ad1e6

See more details on using hashes here.

Supported by

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