Explain it in 60 seconds
Creating new columns
Data Analyst · Python and Pandas · Beginner
What are good ways to create new columns in pandas?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Direct assignment with vectorised maths.
- np.where for conditions.
- np.select for multiple conditions.
- map for lookups.
- assign for method chaining.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.