No project description provided
Project description
BoxAnova
BoxAnova is a Python package built on top of Seaborn Boxplots. Its main purpose is to create Boxplots with additional significance information. By using ANOVAs to evaluate if group and hue differences are significant, it adds significance information to the plot.
Installation
You can install BoxAnova using pip:
pip install BoxAnova
or Poetry
poetry add BoxAnova
Usage
Here is a simple example of how to use BoxAnova:
from BoxAnova import BoxAnova
import pandas as pd
# Load your data
df = pd.read_csv('your_data.csv')
# Initialize BoxAnova with your DataFrame, the group column, and the value column
box_anova = BoxAnova(df, variable='first_variable', group='group' )
# Plot the box plot
box_anova.plot_box_plot()
For multiple box anova, you can use the multiple_box_anova
function:
from BoxAnova import multiple_box_anova
import pandas as pd
# Load your data
df = pd.read_csv('your_data.csv')
# Call the multiple_box_anova function
multiple_box_anova(variables=["first_variable", "second_variable"], data=df, group="group")
In both versions you can add the hue argument.
from BoxAnova import multiple_box_anova, BoxAnova
import pandas as pd
# Load your data
df = pd.read_csv('your_data.csv')
# BoxAnova
# Initialize BoxAnova with your DataFrame, the group column, and the value column
box_anova = BoxAnova(df, variable='first_variable', group='group_column' )
# Plot the box plot with hue
box_anova.plot_box_plot(hue="hue")
# Call the multiple_box_anova function
multiple_box_anova(variables=["first_variable", "second_variable"], data=df, group="group_column", hue="hue")
Contributing
Contributions are welcome!
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
boxanova-0.1.11.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for boxanova-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaccd08dc4dc65b49f15b5d1d631eeca9c207cba5e37c2148a4a4acc227689cb |
|
MD5 | e8c60b9ffc920612577c2c65ab0e972f |
|
BLAKE2b-256 | 100094367f4713c5b52e2d3d3c7f53c30519a91d13c6dabab133a14b9caea740 |