用python画概率分布图

# -*- coding: utf-8 -*-
"""
Created on Thu Oct 21 10:07:55 2021

@author: Machi
"""

import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

plt.rcParams['font.sans-serif'] = ['SimSun']
df = pd.read_csv('BSdata.csv')
sns.distplot(df['身高'],kde = True, bins = 20,rug = True)

用python画概率分布图_第1张图片

你可能感兴趣的:(python,开发语言,后端)