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.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: date_a_scientist-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0cf0fc2977a4acc20054b14c2a2c4279e21a3f974b22a8b33f4f484143ec50f0
MD5 bf85ef524309ea9a02afe4f55367385a
BLAKE2b-256 fddd1ed2db84c7ba16f6937e302afba755248d64c273bd6c92dcb891da59548e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: date_a_scientist-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e622d60a3518374cbe9d0713cf148724d2f509928d3b51f68830ef3f6dc482db
MD5 eb3eed13d029c174d9b0805900a003a0
BLAKE2b-256 a9ce64e8d29fe26294761cc10c9717be23036181c46ef77970c5df9b35d38171

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