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.
  • HTML Rendering: Displays DataFrames in a formatted HTML table.
  • No Disk Writes: Uses temporary files automatically deleted after use.

Installation

pip install pandas-dataframe-viewer

Usage

  1. Import the Module:
    from pandas_dataframe_viewer import view_df
    
  2. Create a DataFrame and view it:
    import pandas as pd
    from pandas_dataframe_viewer 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.tar.gz (2.2 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-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: view_df-0.1.tar.gz
  • Upload date:
  • Size: 2.2 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.tar.gz
Algorithm Hash digest
SHA256 795d954277640e42d243ba016605adb7e29aa1ca14cb2980a9908239fbd181e4
MD5 d9e6b5b1f3a3bee3f791bda1ce55528a
BLAKE2b-256 5c0590ec30b7866f6cd61f90f641f9ee570f3c4bcd257f2d93b55e85348acb01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: view_df-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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-py3-none-any.whl
Algorithm Hash digest
SHA256 df4259dd6bed1a2fac967233339d1796575133e2a52f192f8a062196132d1be7
MD5 b2abe5086ea33b3cc23192aea84397dc
BLAKE2b-256 54780b087e70726d0690259dc27e3bccf0867c73acd80a4df0ffc7effa25095c

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