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
- Install the package using pip:
pip install dataframe-quickview
- 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
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
File details
Details for the file dataframe-quickview-0.1.0.tar.gz
.
File metadata
- Download URL: dataframe-quickview-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ac4a7c9d7a930d83d5f1daa710242e725f67ea83ad5fcb23b67fc5ab6a11d0b |
|
MD5 | 0a4afab2d420a78d8172b8c83c1649ce |
|
BLAKE2b-256 | 44e3c92b005e2e6707154afadf713d8ec4c1623cfb620d3a799885dc2bd3bff3 |
File details
Details for the file dataframe_quickview-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: dataframe_quickview-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06a67cd931538c79dac065aab86b23c4cfea2b373ce16994230e04eeb11fff3d |
|
MD5 | ca922f340f38a97447e2781c9844b9ce |
|
BLAKE2b-256 | fcb446c9ea75c41783fbd5986fffc08b0060229641d12cbbfb35016c4bf9f447 |