春江暮客

春江暮客的个人学习分享网站

Four Plotting Tips in Python

Four Plotting Tips in Python

2021年12月13日 | Technology
When visualizing data, it’s common to plot multiple charts in a single figure. For example, visualizing the same variable from different perspectives like side-by-side histograms and boxplots for numerical variables is useful.……

阅读全文

How to Properly Make Venn Diagrams Using Python Packages

How to Properly Make Venn Diagrams Using Python Packages

2020年7月8日 | Technology
In Venn diagrams of two sets, there can be two (or more) overlapping circles representing sets of different sizes, but the circles are the same size. Actually, the circles should be proportional to the size of the sets, and the overlapping area should also be proportional to the data overlap.……

阅读全文

Calculating the Gini Coefficient and Plotting the Lorenz Curve with matplotlib

Calculating the Gini Coefficient and Plotting the Lorenz Curve with matplotlib

2020年5月31日 | Technology
The Gini coefficient and Lorenz curve are widely used to represent data inequality, especially wealth inequality. However, currently in Python, there isn’t a very good function to directly plot the Lorenz curve. Since the current project requires it, this article records how to use numpy, pandas, matplotlib, and other packages to calculate the Gini coefficient and plot the Lorenz curve for practical use.……

阅读全文

友情链接

其它