From ea37c104ba2a656ebf239af933ac9bb29a539972 Mon Sep 17 00:00:00 2001 From: Hossein Amiri Date: Sat, 17 Aug 2024 15:05:25 -0400 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4e6ba67..c2b2adb 100644 --- a/README.md +++ b/README.md @@ -63,14 +63,14 @@ A formal documation is under development, but you may want to visit an auto-gene ## Example usage ```python -import pandas as pd from omniplot import plot as op import seaborn as sns import matplotlib.pyplot as plt df=sns.load_dataset("titanic") -df=df[["class","embark_town","sex"]].fillna("NA") -op.nested_piechart(df, category=["class","embark_town","sex"], title="Titanic", ignore=0.01, show_legend=True,show_values=False,hatch=True,ncols=3) +df["class"]=df["class"].astype(str) +df["embark_town"]=df["embark_town"].astype(str) +op.nested_piechart(df, category=["class","embark_town","sex"], title="Titanic", ignore=0.01, show_legend=True,show_values=False,hatch=True) plt.show() ```