Skip to main content

A Python module to display large pandas DataFrames with auto-adjusted column widths in a web browser with filtering capability.

Project description

DataFrame Viewer

A Python module to display large pandas DataFrames with auto-adjusted column widths in a web browser with filtering capability and search option.

Overview

DataFrame Viewer is a Python module designed to enhance the visualization of large pandas DataFrames by rendering them as interactive HTML tables in your default web browser. With features like auto-adjusted column widths, filtering capability with search option and cell highlighting, this tool significantly improves the readability and accessibility of your data.

Features

  • Filtering Capabilities: Easily filter data within the DataFrame for targeted analysis, with the option to clear filters, with search box.
  • Auto-Adjusted Column Widths: Automatically adjusts column widths for better readability, making it easier to analyze large datasets.
  • Cell Highlighting: Highlights the selected cell's entire row and column, improving data visibility and navigation.
  • HTML Rendering: Displays DataFrames in a beautifully formatted HTML table, enhancing user experience.
  • No Disk Writes: Operates using temporary files that are automatically deleted after viewing, ensuring your data remains secure.

Installation

pip install view_df

Usage

  1. Import the Module:
    from view_df import view_df
    
  2. Create a DataFrame and view it:
    import pandas as pd
    from view_df import view_df
    
    # Example DataFrame
    data = {
    'Name': ['Alice', 'Bob', 'Charlie'],
    'Gender':['Female','Male','Male'],
    'Occupation': ['Engineer', 'Doctor', 'Artist'],
    'Location': ['New York', 'Los Angeles', 'Chicago']
    }
    df = pd.DataFrame(data)
    
    # View the DataFrame in a web browser
    view_df(df)
    

Release Notes

v 0.2.8 Added button to clear filters in individual columns.
v 0.2.7 Resolved issues with filter menu overflowing out of the screen for last column in case of large tables.
v 0.2.6 Added search box in the filter menu to help easily search from a lot of data.
v 0.2.3 Sorted the issue with filter menu, was not able to differentiate between list and tuple data types.
v 0.2.2: Sorted the issue with "None" datatypes, was causing issue when creating filters.
v 0.2.1: Sorted the issue with cells containing lists, dictonary, sets.
v 0.2: Introduced filtering capabilities and the option to clear filters for a more interactive experience.
v 0.1.3: Implemented minor formatting changes for improved aesthetics.
v 0.1.2: Added cell highlighting feature to enhance data visibility.
v 0.1: Initial release - Displaying DataFrame in web browser.

Github Repo

https://github.com/TheKola/dataframe-viewer

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

view_df-0.2.8.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

view_df-0.2.8-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file view_df-0.2.8.tar.gz.

File metadata

  • Download URL: view_df-0.2.8.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for view_df-0.2.8.tar.gz
Algorithm Hash digest
SHA256 8fe3f0d7fc0cb768eca7b1a6cadd9931b8b8f90bafeb52a35ef65ef449bc224a
MD5 6fadd3eae5678f54382013952a7b8b7a
BLAKE2b-256 88e5b2ee7f369f65af5cdb87bdcab7ecb9fd907a956ee6d939fdd8e46e3facd3

See more details on using hashes here.

File details

Details for the file view_df-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: view_df-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for view_df-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 cef1b1a5520d2ff60cdd828c51c71fa14f2a985d3f2707233683a0a3c4749293
MD5 697a8f5e563cf90b9c56796cb95689e2
BLAKE2b-256 fc7bba6c7f087e22b4126c57ebd0b4c405206d82824464bf182cc1e9449b52e5

See more details on using hashes here.

Supported by

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