遇见数据集

Protestant Epistemology as Juridical Contestation: How Evangelical Institution-Building Contests Colonial Legal Frameworks

收藏
Zenodo2025-11-08 更新2026-05-26 收录
官方服务:

资源简介:

Analyzing Catholic Affiliation Trends in Latin America with Google Colab This repository contains a Python script designed for analyzing trends in Catholic affiliation across Latin American countries. It utilizes descriptive statistics, growth rate analysis, K-means clustering, and regression analysis to explore factors influencing religious change. This guide explains how to run the analysis using Google Colaboratory (Colab) and obtain results: 1. Open the Notebook in Google Colab: Click on the Catholic_Affiliation_Analysis.ipynb file in this repository. Click “Open in Colab” or upload to Colab manually. 2. Upload the Data: Download the Catholic Affiliation in Latin America.xlsx file from the repository. In your Google Colab notebook, use the file explorer (left sidebar) to upload the Excel file to the Colab environment. 3. Modify the Filepath: Locate the code block where the filepath is defined: python Copy if __name__ == "__main__": filepath = '/content/Catholic Affiliation in Latin America.xlsx' # Corrected filepath df = main(filepath) Change the "filepath" variable to the actual path where you've uploaded the Excel file. A good way to do that is to check the directory and copy the filepath to this section. 4. Run the Notebook: Once the file path is set up correctly, run the Colab notebook. Click the "Connect" button. Then the "Run all" option under the "Run" menu will automatically execute all the code blocks sequentially. If the notebook's functions are running, you should begin seeing the code and graphs. 5. Inspect Results: The results of each analysis section (Descriptive Statistics, Growth Rate Analysis, Clustering, etc.) will be printed to the output area of the corresponding code block. The code will also automatically generate and save a visualization (4-panel figure) in the Colab environment. It outputs at "catholic_decline_analysis.png". 6. Download the Visualization: To download the outputted png file, click the "Files" icon in the left sidebar of the Colab interface. Locate the catholic_decline_analysis.png file. Right-click on the file and select "Download" to save it to your local machine. By following these steps, you can run the analysis, interpret the results, and download the visualization for your further investigation. If you encounter any issues during the process, please refer to the documentation for Pandas, statsmodels, scikit-learn, matplotlib, and seaborn. This tool has helped you run econometric analysis without any coding skills or complicated installs. Happy coding!

提供机构:
Zenodo
创建时间:
2025-11-08
二维码
社区交流群
二维码
科研交流群
商业服务