Skip to main content

Query dataframes, find issue with your notebook snippets as if a professional data scientist was pair coding with you

Project description

Date a Scientist

Query dataframes, find issue with your notebook snippets as if a professional data scientist was pair coding with you.

Currently just a thin wrapper around an amazing library called pandas-ai by sinaptik-ai!

How to use it?

from date_a_scientist import DateAScientist
import pandas as pd

df = pd.DataFrame(
    [
        {"name": "Alice", "age": 25, "city": "New York"},
        {"name": "Bob", "age": 30, "city": "Los Angeles"},
        {"name": "Charlie", "age": 35, "city": "Chicago"},
    ]
)
ds = DateAScientist(
    df=df,
    llm_openai_api_token=...,  # your OpenAI API token goes here
    llm_model_name="gpt-3.5-turbo",  # by default, it uses "gpt-4o"
)

# should return "Alice"
ds.chat("What is the name of the first person?")

Inspirations

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

date_a_scientist-0.1.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

date_a_scientist-0.1.4-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file date_a_scientist-0.1.4.tar.gz.

File metadata

  • Download URL: date_a_scientist-0.1.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.3 Darwin/23.4.0

File hashes

Hashes for date_a_scientist-0.1.4.tar.gz
Algorithm Hash digest
SHA256 10625faec97bb9118e2ac89956259c47b00a7305275c773d9fcf3214dc9b3d5c
MD5 85918dcc47cec81b221a452687b21d21
BLAKE2b-256 95b4102c1f8db0a0a1d97f939664dc4b563e3a0a913ab20f96d93d514a16c414

See more details on using hashes here.

File details

Details for the file date_a_scientist-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: date_a_scientist-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.3 Darwin/23.4.0

File hashes

Hashes for date_a_scientist-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c7ad3080f9da6bd8b7c414a7493bcc74685245152e67284960044125c13bce04
MD5 fd2e62857608c1f5df748b5998e0bfb9
BLAKE2b-256 c2435eedfef11a9abf4a5203903cacfc38d5b3c07b73ebde2d7b016bc5acf157

See more details on using hashes here.

Supported by

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