Skip to main content

No project description provided

Project description

DataFrame Viewer

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

Overview

This module lets you visualize pandas DataFrames in a more readable format by rendering them as HTML tables in your default web browser. It includes basic styling to ensure that column widths are auto-adjusted, making it easier to view large DataFrames without saving them to disk.

Features

  • Auto-Adjusted Column Widths: Improves readability by adjusting column widths dynamically.
  • Hightlight Selected Cells: Row and Column of a selected cell is highligted for better visuals.
  • HTML Rendering: Displays DataFrames in a formatted HTML table.
  • No Disk Writes: Uses temporary files automatically deleted after use.

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'],
    'Occupation': ['Engineer', 'Doctor', 'Artist'],
    'Location': ['New York', 'Los Angeles', 'Chicago']
    }
    df = pd.DataFrame(data)
    
    # View the DataFrame in a web browser
    view_df(df)
    

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.1.3.tar.gz (3.8 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.1.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: view_df-0.1.3.tar.gz
  • Upload date:
  • Size: 3.8 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.1.3.tar.gz
Algorithm Hash digest
SHA256 c0b19b87a88c3e54c83e40e96886e4d823098682be9896ccf116ebb76f0e2f3d
MD5 42c08b08a54c70436f6e17c1cc1bb510
BLAKE2b-256 109f362e7694f3f636483d107e7862c6f6822aa5373235a66ff8b41e56f636de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: view_df-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 60aa2478f89b3d50ef88d1dd3e84338bf55adbd913ea715ea982e2ac75bf0bb1
MD5 05f8644ba628f857d290fd40a9e6e7b7
BLAKE2b-256 6046d70ab6e97cc215a394b98203c40657b3c4d1bf3228430a46605ccdfd7eb8

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