0Pricing
Data Science Academy · Lesson

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

  1. Bin Numbers Into Categories
  2. Encode Categorical Columns
  3. Scale and Normalize Numbers
  4. Build Features From Dates and Text
← Back to Data Science Academy