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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: date_a_scientist-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 31eb254d2fd7582f012a5702cac32227c2beedfd68550048737a25344d487177
MD5 cbe90d1a96e5a732d2df71236f4b7b99
BLAKE2b-256 0208d0f9ef5496504df18b7f1daf791b6e87b4641f5eeb352714029c58b9ce93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: date_a_scientist-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2b404395936a735bf55abf4214886836436e97100096cdab0dd1a229b9353b20
MD5 5f633a5b90827c75b5f40a1f531958f2
BLAKE2b-256 19bd341b932288067cd22dafa1f00c4afb1a5aed61183ea7202d867e589cf7dd

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