Making Handy Rough Visualizations With Roughviz Python Library
Dr.Mostafa Samy, BDS
Dentist | Healthcare Data Science / A.i | Generative A.i for healthcare "clinical LLM's" | Digital Healthcare Transformation & Integration | MSc Operations Research | Applied Statistics(FGSSR) | DTQM( AICPD).
RoughViz Python Library Is Extremely Tremendous In Making Handwritten Sketched Visualizations That Is Sometimes Needed To break The Dry Nature Of Some Data Visualization Especially For Managers Who Get Bored From Routine Reports.
I Consider This Library As The Candy Of Visualizations.
Here I Will Try To Make Few Examples From The Git Hub Repository Of This Open Library.
Assume That We Have An Excel Spreadsheet That Is Containing The Following Data
Month Hospital A Revenue Hospital B Revenue
0 JAN 1100000 1110000
1 FEB 1125000 1125000
2 MARCH 1150000 1260000
Lets Load Our Needed Libraries
!pip?install?roughviz
import?roughviz
import?pandas?as?pd?
Then Lets Read Our Data Using This Pandas Snippet
df?=?pd.read_excel('/content/Data?For?Roughviz.xlsx')
df
roughviz.bar(df["Month"],?df["Hospital?A?Revenue"],?axisRoughness?=?0.3,?axisStrokeWidth?=?0.4,?roughness=1.3,?highlight="green")
Now We Drew Our First Vertical Bar Chart
Lets Try To Make It Horizontal Bars
roughviz.barh(df["Month"],?df["Hospital?B?Revenue"],?axisRoughness?=?0.1,?axisStrokeWidth?=?20.7,?roughness=2.3,?highlight="gray")
Lets Have A Quick Look On This Delicious Pie
And Finally Lets See This Tasty Doughnut
roughviz.donut(df["Month"],?df["Hospital?B?Revenue"],?axisRoughness?=?0.7,?axisStrokeWidth?=?0.7,?roughness=2.3,?highlight="gray")
Data Link And Colab Notebook Link Are Shown Below In The Comments
Dentist | Healthcare Data Science / A.i | Generative A.i for healthcare "clinical LLM's" | Digital Healthcare Transformation & Integration | MSc Operations Research | Applied Statistics(FGSSR) | DTQM( AICPD).
3 年https://docs.google.com/spreadsheets/d/1xREwLk_UPChiIgaMyFTQNNhpn4w2dwvT968Y_FvthhI/edit#gid=0
Dentist | Healthcare Data Science / A.i | Generative A.i for healthcare "clinical LLM's" | Digital Healthcare Transformation & Integration | MSc Operations Research | Applied Statistics(FGSSR) | DTQM( AICPD).
3 年https://colab.research.google.com/drive/1Ia1sSCyPqHqf-jazFNkxciBrty2VK4GN?usp=sharing