其他分享
首页 > 其他分享> > 条形图和热图

条形图和热图

作者:互联网

1.Set up the notebook

2.Load the data

3.Examine the data

4.Bar chart

 

 

 

sns.barplot - This tells the notebook that we want to create a bar chart.

x=flight_data.index - This determines what to use on the horizontal axis. 

y=flight_data['NK'] - This sets the column in the data that will be used to determine the height of each bar.

5.Heatmap

 

 

 

sns.heatmap - This tells the notebook that we want to create a heatmap.

data=flight_data - This tells the notebook to use all of the entries in flight_data to create the heatmap.

annot=True - This ensures that the values for each cell appear on the chart. (Leaving this out removes the numbers from each of the cells!)

标签:flight,heatmap,create,notebook,热图,data,tells,条形图
来源: https://www.cnblogs.com/minTTremor/p/13921050.html