import numpy as np import pandas as pd 引入 A basic kind of time series object in pandas is a Series indexed by timestamps, which is often represented external to pandas as Python string or datetime objects: from datetime import datetime dates = [ date…