logo

SKlearn

相关特征工程

wangzf / 2023-03-18


时间相关特征工程

数据

from sklearn.datasets import fetch_openml

bike_sharing = fetch_openml(
    "Bike_Sharing_Demand", 
    version = 2,
    as_frame = True,
    parser = "pandas"
)
df = bike_sharing.frame

时间序列数据分割

参考