セクション 1. 章 4
single
Challenge: Building a Feature Pipeline for Customer Data
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
You are given a flights dataset as a list of rows. Load it into a DataFrame using createDataFrame and apply the encoding and scaling techniques from the previous chapters. Store results in the specified variables:
- Fill nulls in
DelayandLengthwith0; - Apply
StringIndexertoAirline– store the result in a columnAIRLINE_IDX; - Apply
OneHotEncodertoAIRLINE_IDX– store the result in a columnAIRLINE_VEC; - Assemble
Length,Time, andAIRLINE_IDXinto a vector columnFEATURES_RAW; - Apply
StandardScalerwithwithMean=TrueandwithStd=TruetoFEATURES_RAW– store the result inFEATURES_SCALED; - Store the final DataFrame in
features_dfand count its rows infeatures_count.
Print features_count and show all rows of Airline, AIRLINE_VEC, FEATURES_SCALED.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 4
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください