点击运行
import pandas as pd import numpy as np #使用 6 个随机数创建一个Series s = pd.Series(np.random.randn(6)) print ("The last trhee rows of the data series:") print(s.tail(3))
运行结果 :
正在执行...