ELT 實作
對於執行 ETL 流程已經頗有把握了嗎?現在輪到你試試看 ELT 管線。和前面一樣,extract()、load()、transform() 函式都已幫你定義好;你只需要專注在呼叫這些函式即可。祝你順利!
本練習屬於課程
使用 Python 的 ETL 與 ELT
練習說明
- 使用合適的 ETL 函式,從
raw_data.csv檔案擷取資料。 - 將
raw_dataDataFrame 載入資料倉儲中的raw_data資料表。 - 呼叫
transform()函式,轉換raw_data來源資料表中的資料。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Extract data from the raw_data.csv file
raw_data = ____(file_name="____.csv")
# Load the extracted_data to the raw_data table
load(data_frame=____, table_name="____")
# Transform data in the raw_data table
____(
source_table="____",
target_table="cleaned_data"
)