基本用法 import pandas as pd import numpy as np df = pd.DataFrame(np.arange(12).reshape(3, 4), index=pd.date_range