Codecademy Forums

User Churn Project Bonus Quesiton

This is probably a stupid beginner’s question but in the hint/answer to the bonus question in the User Churn project (https://www.codecademy.com/paths/data-science/tracks/analyze-data-sql-analyze-real-data/modules/analyze-data-sql-user-churn/projects/calc-churn-proj) what does it mean when it says “avoid hard coding the segment numbers”? Is it saying that for a larger number of segments it would be easier to create more general “is_active”/“is_canceled” columns and group by segment (as well as month) rather than creating specific columns for each segment? Or is it referring to a different approach?

Yes, I think that’s exactly what they mean :slight_smile: