Skip to main content

A simple package to extend pandas DataFrame functionality for web-based visualization

Project description

DataFrame QuickView

DataFrame QuickView is a Python package that extends pandas DataFrame functionality to easily display and visualize DataFrames in a web-based environment. This package is an experiment in paired programming with GPT-4. It is built using Flask and allows users to view paginated DataFrames and interactively generate histograms based on the selected columns.

Features

Phase 1

  • Extend pandas DataFrame with quickview() method
  • Display paginated DataFrame in a web browser
  • Create an interactive dropdown and button combination populated with DataFrame columns
  • Generate histograms based on the selected column when the button is pressed

Phase 1 Technical Overview

  • Flask server: Represents the backend server running the Flask application, which serves the paginated DataFrame and processes the histogram data.
  • DataFrame display: The component in the web browser that shows the paginated DataFrame.
  • Column selection: The dropdown and button combination that allows users to select a column for generating the histogram.
  • Histogram generation: The component responsible for creating a histogram based on the selected column.

Interactions:

  • Flask server sends the paginated DataFrame to the DataFrame display.
  • User selects a column in the Column selection component.
  • User clicks the button in the Column selection component.
  • Flask server receives the selected column and processes the histogram data.
  • Histogram generation component receives the data and displays the histogram.

Usage

  1. Install the package using pip:
pip install dataframe-quickview
  1. Import the package and use the quickview() method on a pandas DataFrame object:
import pandas as pd
from dataframe_quickview import quickview

data = {'A': [1, 2, 3, 4, 5], 'B': [2, 4, 6, 8, 10], 'C': [3, 6, 9, 12, 15]}
df = pd.DataFrame(data)

df.quickview()

This will start the Flask server and open the browser to view the paginated DataFrame and interactive histogram.

Contributing

We welcome contributions to this project. However, please note that all code added to the project should be written primarily by Language Models (LLMs) to maintain the experimental nature of this project.

License

This project is licensed under the 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

dataframe-quickview-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

dataframe_quickview-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file dataframe-quickview-0.1.1.tar.gz.

File metadata

  • Download URL: dataframe-quickview-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for dataframe-quickview-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9f2fa72b9cc31c9a5758bc893ebe6924e84f7e1bd0f941181fe862f4398cefe3
MD5 c80a9887a3bcc94cb8cd5de484d16055
BLAKE2b-256 6456dd4a5524e889503554d6c81a54a6fc05713460270515e4c7e1fe6cb52ff1

See more details on using hashes here.

File details

Details for the file dataframe_quickview-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dataframe_quickview-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 973db995a584c2596152637e710ed250c215909ec4097ec7fd93c6dd051c8789
MD5 58eaff8c2eca049a19e3805e23692dfe
BLAKE2b-256 85b7ee8254c05eab6f5b929781dce4303e888bb8a952950c08e1cebde316724f

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