Choropleth Map displays spatial variations of quantities of data on a map. In this article, we will introduce how to use Python’s Plotly Express package to plot a choropleth map.
Box Plots and Violin Plots are statistical charts that can well represent the distribution of data. In this article, we will introduce how to use Python’s Matplotlib, Seaborn, and Plotly Express packages to draw box plots and violin plots.
Pie/donut/sunburst charts are often used to describe the relative relationship between quantities or percentages. We will introduce how to draw a pie chart using Python’s Matplotlib and Plotly Express package.
Heatmaps are often used to display the correlation coefficient of data. In this article, we will introduce how to use Python’s Matplotlib, Seaborn, and Plotly Express packages to draw heatmaps.
Spearman Correlation Coefficient is a nonparametric method. It calculates the ranks by sorting the two variables, and then calculates the difference between the ranks to measure the correlation between the two variables.
Mann-Whitney U test is a nonparametric test. It combines the two samples, sort them, and assign them ranks according to the orders to test if the distribution of two population are equal.
Chi-Square Test tests whether the variables in a crosstab are independent based on the observed frequencies. SciPy’s chi2_contingency() can help us quickly calculate chi-square statistic and p-value.
Crosstab shows the frequency distribution of the values of two variables. pandas.crosstab() can help us calculate crosstabs and display beautiful tables.