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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: date_a_scientist-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 7cf105b943311072f1e4d6bdfbcd0ca2903814233859764e37262a143da94607
MD5 470a95f378962d68bcf7e5a6d3e04971
BLAKE2b-256 b4b7e5583da60c7967f0eea40e5468d24d1d6292000d476837f27126ccb17249

See more details on using hashes here.

File details

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

File metadata

  • Download URL: date_a_scientist-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 569bd14a26ba28ccadc5511f11af132f4ee45da06a289ce5926c9dcc78d8361e
MD5 617586ec4b2c8edff6b506b43b0aba92
BLAKE2b-256 9df614f5f844cd465ce541e223d5f683cf8b8d769ed9c2fee45065224a83d8d4

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