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"
)