Feature Engineering with PySpark
John Hogue
Lead Data Scientist, General Mills
ทำนายราคาขายบ้าน
SALESCLOSEPRICE
DataFrame.count() สำหรับนับจำนวนแถวdf.count()
5000
DataFrame.columns สำหรับดูรายชื่อคอลัมน์df.columns
['No.', 'MLSID', 'StreetNumberNumeric', ... ]
DataFrame.columns สำหรับนับจำนวนคอลัมน์len(df.columns)
74
DataFrame.dtypes
df.dtypes
[('No.', 'integer'), ('MLSID', 'string'), ... ]
Feature Engineering with PySpark