Python笔记13------pandas作图

1、pandas可以用来画DataFrame和Series的图

如:

import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
x = np.linspace(0, 1)
y = np.sin(4 * np.pi * x) * np.exp(-5 * x)
t=pd.DataFrame(y,index=x)
t.plot()

t.plot(kind='bar')

 

t.plot(kind='barh')

t.boxplot()箱型图

 

posted on 2018-03-25 20:01  吱吱了了  阅读(372)  评论(0编辑  收藏  举报

导航