import seaborn as sns
import pandas as pd
import numpy as nu
import matplotlib.pyplot as plt
sns.set(color_codes=True)
%matplotlib inline
//Data Exploration and Analysis
df = pd.read_csv('iris.data')
df.head()
//出现结果
df=pd.read_csv('iris.data',header=-1)
df.head()
//出现结果
col_name = ['sepal length','sepal width','petal length','petal width','calss']
df.columns=col_name
df.head()
//出现结果
//Iris Data from Seaborn
iris = sns.load_dataset('iris')
iris.head()
//出现结果
df.describe()
//出现结果
iris.describe()
//出现结果
print(iris.info())
//出现结果
print(iris.groupby('species').size())
//出现结果
ch6 数据探索与分析
最新推荐文章于 2024-08-16 15:56:31 发布