Skip to content

Repository files navigation

DANA Automation Data Scientist Take Home Test: Feature Creation + User Segmentation

This project contains the full workflow and documentation for engineering user-level behavioural features from transaction data and performing segmentation using K-Means clustering. It transforms raw transaction logs into interpretable behavioural, psychographic, and lifestyle features, and then identifies meaningful user segments through unsupervised learning.

Feel free to inspect each part, run it locally, and modify as needed. Click here to learn more about the project: dana-fc-us/assets/test.txt.

πŸ“ Project Structure

dana-fc-us
β”‚
β”œβ”€ data/
β”‚  └─ transactions.csv
β”‚
β”œβ”€ user_features_segmentation_code.ipynb
β”œβ”€ user_features_segmentation_report.docx
└─ requirements.txt
  • user_features_segmentation_code.ipynb: A detailed jupyter noteboook containing the complete Python code for data cleaning, feature engineering, derived behavioural scoring, and user segmentation (K-Means + PCA visualization).
  • user_features_segmentation_report.docx: A detailed analytical report explaining the reasoning, methodology, and findings for all engineered features and the segmentation results.

βš™οΈ Local Setup

  1. Make sure to have the prerequisites:

    • Git
    • Git Large File Storage
    • Python
    • Conda or venv
  2. Clone the repository:

     git clone https://github.com/verneylmavt/dana-fc-us.git
     cd dana-fc-us
  3. Create environment and install dependencies:

    conda create --name dana-fc-us python=3.10
    conda activate dana-fc-us
    
    pip install -r requirements.txt
  4. Open the user_features_segmentation_code.ipynb in Jupyter Notebook:

    jupyter notebook user_features_segmentation_code.ipynb
  5. Run all cells sequentially from top to bottom
    The notebook is designed so that each section depends on the previous one.

  6. Review outputs

  7. Refer to the report
    For interpretation, assumptions, and insights, read user_features_segmentation_report.docx.

About

DANA Automation Data Scientist Take Home Test: Feature Creation + User Segmentation

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages