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 IDds: series timestampy: 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")