开始使用免费开始使用

Preparing and visualizing the data

Accurate data preparation is key to building effective machine learning models. Now it's time to apply the skills you've learned.

Your data needs three columns for the statsforecast library:

  • unique_id: series ID
  • ds: series timestamp
  • y: series values

Apply the necessary steps to clean and reformat your data for time series forecasting. The dataset has been preloaded as ts, and pandas is imported as pd.

本练习是课程的一部分

Designing Forecasting Pipelines for Production

查看课程

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Convert the period column to datetime and sort the data by period
ts["____"] = pd.____(ts["period"])
ts = ts.____("period")
编辑并运行代码