Original size 636x948

Prevalence of Christianity

PROTECT STATUS: not protected
7

I have always been drawn to the ideas of Christianity, so I immediately decided to take statistics on Christianity in different countries. I found the data on Wikipedia.ru. The dataset includes information about the total population, the number of Christians, and the percentage of Christians relative to the population.

big
Original size 4000x1500

Обработка данных

First, I imported the data and then analyzed it from a CSV file using the pandas library. After that, to create a clear visualization, I used the following libraries: matplotlib.pyplot for the basic chart elements and seaborn to enhance the appearance.

big
Original size 2384x1263

Then, I processed the data for a bar chart showing the top 10 countries by the number of Christians.

big
Original size 1066x547
Original size 2384x1709
Original size 1282x547
Original size 2384x1095

x='Number of Christians' Specifies that the ‘Number of Christians’ column will be displayed along the horizontal axis.

y='Major Denomination' Specifies that the ‘Major Denomination’ column will be displayed along the vertical axis. Each unique value in this column will be represented by a separate «violin.»

data=df_directions Indicates the DataFrame containing the data for the chart.

palette='coolwarm' Sets the color palette for the violins. The ‘coolwarm’ palette uses a blue-to-red color scheme, where blue usually represents smaller values and red represents larger ones.

hue='Major Denomination' Indicates that the violins should be colored differently depending on the denomination of Christianity. Since hue matches y, each violin will have its own color.

legend=False Disables the legend display, as it is redundant in this case (the colors already correspond to the denominations shown on the y-axis).

Then, I created a table showing the number of Christians in different regions of the world.

Original size 4000x1500
Original size 616x504
Original size 2384x877
Original size 1005x547
Original size 2384x877

Заключение

While studying the dataset containing information about Christians around the world, I created four charts. So, the highest number of Christians was recorded in North America in 2020.

We use cookies to improve the operation of the website and to enhance its usability. More detailed information on the use of cookies can be fo...
Show more