I used a real dataset to demonstrate how to replace column values/records and convert the variable type from string/object to numeric/float/integer. I used .loc and .replace functions in python Jupyter notebook.
Sometimes, pandas reads a typical numeric variable such as "age" as string if this variable has non-numeric values in the records. In this situation, we must replace the non-numeric values into empty cell (to consider as missing values). Then, we have to convert the variable type from string to numeric.
On this page of the site you can watch the video online Replace column values | Covert string to numeric | loc and replace function in python with a duration of hours minute second in good quality, which was uploaded by the user Data Science Desk 14 February 2021, share the link with friends and acquaintances, this video has already been watched 5,026 times on youtube and it was liked by 34 viewers. Enjoy your viewing!