Hi
Hope you’re doing well
I have this question: Why do I get an error when I replace “kg” before “kgs”?
Error: laptops[“weight”] = laptops[“weight”].str.replace(“kg”, “”).str.replace(“kgs”, “”).astype(float)
Correct: laptops[“weight”] = laptops[“weight”].str.replace(“kgs”, “”).str.replace(“kg”, “”).astype(float)
Thanks, have a good day
Best Regards,
Luis C Baez L
Hi Luis. I found another post that had the answer to your question:
Have a great day!
Hi @april.g,
I got it! Thank you so much!
Have a great day to
Best Regards,
Luis C Baez L