seaborn箱线图
Hello, folks! In this article, we will be taking the Seaborn tutorial ahead and understanding the Seaborn Line Plot. We recently covered Seaborn HeatMaps so feel free to have a look if you’re interested in learning more about heatmaps.
大家好! 在本文中,我们将继续进行Seaborn教程,并了解Seaborn Line Plot 。 我们最近介绍了Seaborn HeatMaps,因此如果您有兴趣了解有关热图的更多信息,请随时查看。
什么是线图? (What is a Line Plot?)
Seaborn as a library is used in Data visualizations from the models built over the dataset to predict the outcome and analyse the variations in the data.
Seaborn是一个库,可用于在数据集中建立的模型的数据可视化中 ,以预测结果并分析数据的变化。
Seaborn Line Plots depict the relationship between continuous as well as categorical values in a continuous data point format.
Seaborn线图以连续数据点格式描述连续值和分类值之间的关系。
Throughout this article, we will be making the use of the below dataset to manipulate the data and to form the Line Plot. Please go through the below snapshot of the dataset before moving ahead.
在整个本文中,我们将使用以下数据集来操纵数据并形成线图。 在继续操作之前,请仔细阅读下面的数据集快照。
In the below dataset, the data variables — ‘cyl‘, ‘vs‘, ‘am‘, ‘gear‘ and ‘carb‘ are categorical variables because all the data values fall under a certain category or range of values.
在下面的数据集中,数据变量“ cyl ”,“ vs ”,“ am ”,“ gear ”和“ carb ”是分类变量,因为所有数据值都属于某个类别或值范围。
While the remaining data column falls under the integer/continuous variables because they carry discrete integer values with them.
而剩余的数据列属于整数/ 连续变量,因为它们带有离散整数值。
Input Dataset:
输入数据集:
绘制您的第一个Seaborn线图 (Plotting Your First Seaborn Line Plot)
In order to start with Line Plots, we need to install and import the Seaborn Library into the Python environment by using the below command:
为了从线图开始,我们需要使用以下命令将Seaborn库安装并导入到Python环境中:
Syntax:
句法:
pip install seaborn
Once you are done with the installation, import the library to the current working environment and use the functions
完成安装后,将库导入到当前工作环境并使用功能
Syntax:
句法:
import seaborn
For the entire series of Seaborn, we will be using Matp