Skip to main content

Enhance pandas DataFrame with direct Plotly Express plotting functions, including safe versions

Project description

PlotlyPlus Module

Introduction

PlotlyPlus is a streamlined Python module that seamlessly integrates Plotly Express plotting functions into pandas DataFrames. This tool is designed to enhance the ease and efficiency of visualizing data directly from pandas.

Key Features

  • Seamless Plotly Express Integration: Directly integrates Plotly Express plotting functions with pandas DataFrames.
  • Safe Mode: To avoid naming conflicts, PlotlyPlus introduces a 'safe mode' (plotlyplus_safe). In this mode, each function is prefixed, ensuring namespace integrity at the cost of slightly reduced convenience.

Installation

Install PlotlyPlus using pip with the following command:

pip install plotlyplus

Usage

Standard Mode

In the standard mode, import plotlyplus after pandas to automatically enhance DataFrames with Plotly Express functionality.

import pandas as pd
import plotlyplus

df = pd.DataFrame(...)
fig = df.bar(...)  # Plotly Express function as a DataFrame method
fig.show()

Safe Mode

In the safe mode, import plotlyplus_safe after pandas to automatically enhance DataFrames with Plotly Express functionality. This mode prefixes the Plotly Express functions to minimize namespace conflicts.

import pandas as pd
import plotlyplus_safe

df = pd.DataFrame(...)
fig = df.px_bar(...)  # Plotly Express function as a DataFrame method
fig.show()

Contributing

Contributions to PlotlyPlus are welcome. Please feel free to submit pull requests, report bugs, or suggest features.

License

PlotlyPlus is made available 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

plotlyplus-0.1.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

plotlyplus-0.1.0-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

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