Build Features From Dates and Text
Extracting signal from raw fields.
Raw Fields Hide Signal
A timestamp or a free-text note holds rich clues a model cannot read directly. Feature engineering pulls that signal into usable columns. 🔍
Parse the Date First
Before mining a date, convert the string with to_datetime. Only a real datetime exposes the handy parts you want to extract.
df['ts'] = pd.to_datetime(df['ts'])All lessons in this course
- Bin Numbers Into Categories
- Encode Categorical Columns
- Scale and Normalize Numbers
- Build Features From Dates and Text