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
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
Hashes for plotlyplus-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e51dc98a5ebe47575635fd2d2a17a9e61b2cbd4126ff038b162e91424b52b747 |
|
MD5 | cb3e8306118b604a7296adbdd57cfeee |
|
BLAKE2b-256 | 7f6d3980c9bbf76a24574bf40ab971a596274087a91547942dd4b78cb7ccb5eb |