import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import matplotlib.mlab as mlab
# 加载数据
data = pd.read_csv("birth-rate.csv")# 删除空数据
data.dropna(subset=['2008'], inplace=True)# print(data.head(5))#绘制密度图
k = mlab.GaussianKDE(data['2008'])
x