A declarative business intelligence library designed for natural language interactions
Project description
Perspective BI
A declarative business intelligence library designed for natural language interactions. Perspective BI provides a clean, intuitive API for data transformation and visualization, making it easy to create beautiful dashboards from natural language queries.
Installation
pip install perspective-bi
Quick Start
import perspective_bi as px
# Load and transform data
sales_data = (
px.DataSet('sales.csv')
.filter(date='last_month')
.aggregate(group_by=['category'])
.sort_values('sales', ascending=False)
)
# Create visualization
chart = px.bar(
data=sales_data,
x='category',
y='sales',
title='Sales by Category'
)
# Display in notebook or save
chart.show()
Features
- Declarative API: Simple, intuitive interface for data manipulation and visualization
- Natural Language Ready: Designed to work seamlessly with LLM-generated instructions
- Powerful Data Transformations: Built on pandas with an intuitive API
- Beautiful Visualizations: Leverages Plotly for interactive charts
- Flexible Data Sources: Support for CSV, Excel, and more
Documentation
DataSet Operations
filter(): Filter data based on conditionsaggregate(): Group and aggregate datasort_values(): Sort data by columnssave(): Save transformed data
Visualizations
bar(): Create bar chartsline(): Create line chartsscatter(): Create scatter plotspie(): Create pie charts
License
MIT License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file perspective_bi-0.1.0.tar.gz.
File metadata
- Download URL: perspective_bi-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1be67f576f300d73c68e6fcdec69ab052dfbbf5d23d82974ee58c889ee72ac4e
|
|
| MD5 |
5a24936cd2bfb86865bcf2e65aee6682
|
|
| BLAKE2b-256 |
1bfca4d0abaf80e0c5df87da51b7b82e212b143bed01c1f12c9f4b3962d1664a
|
File details
Details for the file perspective_bi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: perspective_bi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5943bef57caabd686a260f461fd5c9def594c4bac031d8f3a748f993b7952099
|
|
| MD5 |
77361d4161c7b83f0d0287e92b2197a4
|
|
| BLAKE2b-256 |
c536a475d3f43a96d143c906f3f09e050dd16efc30676b8d931968cd3c6a17f8
|