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()

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

t.plot(kind='bar')

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

 

t.plot(kind='barh')

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

t.boxplot()箱型图

 

相关文章:

  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2021-12-13
猜你喜欢
  • 2021-11-15
  • 2021-06-28
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2021-04-22
相关资源
相似解决方案