python画交互式地图
Welcome to The Beginner’s Guide to Building Interactive Maps in Python
欢迎使用Python构建交互式地图的初学者指南
In this post, I would like to show you how to create interactive climate maps using the Historical Climate Data, where you can visualize, examine, and explore the data. Data visualization plays an important role in representing data. Creating visualizations helps to present your analysis in an easier form of understanding. Especially when working with large datasets it is very easy to get lost, that’s when we can see the power of data visualization. In this exercise, we will work with climate data from Kaggle. We will build two interactive climate maps. The first one will be showing the climate change of each country, and the second one will be showing the temperature change over time. Let’s get started, we have a lot to do!
在本文中,我想向您展示如何使用历史气候数据创建交互式气候图,您可以在其中可视化,检查和探索数据。 数据可视化在表示数据中起着重要作用。 创建可视化有助于以一种更容易理解的方式呈现您的分析。 特别是在处理大型数据集时,很容易迷失方向,这就是我们可以看到数据可视化的强大功能。 在本练习中,我们将使用来自Kaggle的气候数据。 我们将构建两个交互式气候图。 第一个显示每个国家的气候变化,第二个显示随着时间的温度变化。 让我们开始吧,我们还有很多事要做!
Kaggle is the world’s largest data science community with powerful tools and resources to help you achieve your data science goals.
Kaggle是全球最大的数据科学社区,其功能强大的工具和资源可帮助您实现数据科学目标。
目录: (Table of Contents:)
- Plotly 密谋
- Understanding the Data 了解数据
- Data Cleaning 数据清理
- Data Preprocessing 数据预处理
- Data Visualization 数据可视化
密谋 (Plotly)
Plotly is Python graphing library that makes interactive, publication-quality graphs. Examples of how to make line plots, scatter plots, area charts, bar charts, error bars, box plots, histograms, heatmaps, subplots, multiple-axes, polar charts, and bubble charts. It is also an open-source library.
Plotly是Python图形库,可制作交互式的,具有出版质量的图形。 有关如何制作折线图,散点图,面积图,条形图,误差线,箱形图,直方图,热图,子图,多轴图,极坐标图和气泡图的示例。 它也是一个开源库。
To learn more about Plotly: Plotly Graphing Library
要了解有关Plotly的更多信息: Plotly Graphing Library
了解数据 (Understanding the Data)
The Berkeley Earth Surface Temperature Study combines 1.6 billion temperature reports from 16 pre-existing archives. It is nicely packaged and allows for slicing into interesting subsets (for example by country). They publish the source data and the code for the transformations they applied.
伯克利地球表面温度研究结合了16个现有档案中的16亿个温度报告。 它包装精美,可以切成有趣的子集(例如,按国家/地区)。 他们为应用的转换发布源数据和代码。
Dataset can be found at the following link: Climate Data
可以在以下链接中找到数据集: 气候数据
The data folder includes the following datasets:
数据文件夹包含以下数据集:
- Global Average Land Temperature by Country 全球平均陆地温度(按国家)
- Global Average Land Temperature by State 全球各州平均陆地温度
- Globa