Skip to main content

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 conditions
  • aggregate(): Group and aggregate data
  • sort_values(): Sort data by columns
  • save(): Save transformed data

Visualizations

  • bar(): Create bar charts
  • line(): Create line charts
  • scatter(): Create scatter plots
  • pie(): Create pie charts

License

MIT License

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

perspective_bi-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

perspective_bi-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

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

Hashes for perspective_bi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1be67f576f300d73c68e6fcdec69ab052dfbbf5d23d82974ee58c889ee72ac4e
MD5 5a24936cd2bfb86865bcf2e65aee6682
BLAKE2b-256 1bfca4d0abaf80e0c5df87da51b7b82e212b143bed01c1f12c9f4b3962d1664a

See more details on using hashes here.

File details

Details for the file perspective_bi-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for perspective_bi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5943bef57caabd686a260f461fd5c9def594c4bac031d8f3a748f993b7952099
MD5 77361d4161c7b83f0d0287e92b2197a4
BLAKE2b-256 c536a475d3f43a96d143c906f3f09e050dd16efc30676b8d931968cd3c6a17f8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page