pandas学习笔记
基础语法参考菜鸟教程:https://www.runoob.com/pandas/pandas-tutorial.html
# jupyter
import pandas as pd
import matplotlib
from matplotlib import pyplot as plt
import numpy as np
matplotlib.use('TkAgg')
data = {
'timestamp': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
'a': np.random.rand(10),
'b': np.random.rand(10),
'c': np.random.rand(10),
'd': np.random.rand(10),
'e': np.random.rand(10)
}
pf = pd.DataFrame(data)
%matplotlib inline
pf.plot(x='timestamp', y=['a', 'b', 'c', 'd', 'e'])