Interview practice question
Numbers stored as text with symbols
Data Analyst · Python and Pandas · Beginner
A revenue column contains values like "€1,234.50" stored as text. How do you convert it to numbers?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Remove currency symbols and thousands separators (str.replace).
- pd.to_numeric(errors="coerce").
- Check values that became NaN.
- Handle locale decimal formats.
- Fix at read_csv with thousands param.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.