A set of tools for working with Cognite Data Fusion in Python
Project description
cognite-ai
A set of AI tools for working with CDF in Python.
Smart data frames
Chat with your data using LLMs. Built on top of PandasAI If you have loaded data into a Pandas dataframe, you can run
Install the package
%pip install cognite-ai
Chat with your data
from cognite.ai import load_pandasai
SmartDataframe, SmartDatalake = await load_pandasai()
workorders_df = client.raw.rows.retrieve_dataframe("tutorial_apm", "workorders", limit=-1).to_pandas()
workitems_df = client.raw.rows.retrieve_dataframe("tutorial_apm", "workitems", limit=-1).to_pandas()
workorder2items_df = client.raw.rows.retrieve_dataframe("tutorial_apm", "workorder2items", limit=-1).to_pandas()
workorder2assets_df = client.raw.rows.retrieve_dataframe("tutorial_apm", "workorder2assets", limit=-1).to_pandas()
assets_df = client.raw.rows.retrieve_dataframe("tutorial_apm", "assets", limit=-1).to_pandas()
from cognite.client import CogniteClient
client = CogniteClient()
smart_lake_df = SmartDatalake([workorders_df, workitems_df, assets_df, workorder2items_df, workorder2assets_df], cognite_client=client)
smart_lake_df.chat("Which workorders are the longest, and what work items do they have?")
s_workorders_df = SmartDataframe(workorders_df, cognite_client=client)
s_workorders_df.chat('Which 5 work orders are the longest?')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cognite_ai-0.1.1.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file cognite_ai-0.1.1.tar.gz
.
File metadata
- Download URL: cognite_ai-0.1.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27819a99117ae823791329c16f7ce8db4d80c6d7582de7d8bd23836380a94836 |
|
MD5 | ae24c113d52d16a2a370e21dc403a33a |
|
BLAKE2b-256 | bb88544fb2d2bc3b7267bdbedf488b245da5d4651a517bb76df3a0c54904356a |
File details
Details for the file cognite_ai-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: cognite_ai-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e2eb4c71d0ddbde1d9dc786681409658e52c77086a6298164734e6698a61272 |
|
MD5 | ecda253c594390d771bafd121f99a29d |
|
BLAKE2b-256 | 86c34e256319c141787a54b6d902f77cb29e696ed70aef6160a1542ed5aa4b9b |