高维数据可视化

import pandas as pd
import matplotlib.pyplot as plt
data = pd.read_csv('iris.csv')
data.head()
Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies
05.13.51.40.2setosa
14.93.01.40.2setosa
24.73.21.30.2setosa
34.63.11.50.2setosa
45.03.61.40.2setosa
from pandas.tools.plotting import andrews_curves
plt.figure()
andrews_curves(data,'Species')
C:\Anaconda\lib\site-packages\ipykernel_launcher.py:3: FutureWarning: 'pandas.tools.plotting.andrews_curves' is deprecated, import 'pandas.plotting.andrews_curves' instead.
  This is separate from the ipykernel package so we can avoid doing imports until





<matplotlib.axes._subplots.AxesSubplot at 0x194bc953a20>

在这里插入图片描述

from pandas.tools.plotting import parallel_coordinates
plt.figure()
parallel_coordinates(data,'Species')
C:\Anaconda\lib\site-packages\ipykernel_launcher.py:3: FutureWarning: 'pandas.tools.plotting.parallel_coordinates' is deprecated, import 'pandas.plotting.parallel_coordinates' instead.
  This is separate from the ipykernel package so we can avoid doing imports until





<matplotlib.axes._subplots.AxesSubplot at 0x194bcb53518>

在这里插入图片描述

from pandas.tools.plotting import radviz
plt.figure()
radviz(data, 'Species')
C:\Anaconda\lib\site-packages\ipykernel_launcher.py:3: FutureWarning: 'pandas.tools.plotting.radviz' is deprecated, import 'pandas.plotting.radviz' instead.
  This is separate from the ipykernel package so we can avoid doing imports until





<matplotlib.axes._subplots.AxesSubplot at 0x21ead4859b0>

在这里插入图片描述


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值