Have you ever tried to do math with a pandas Series that you thought was numeric, but it turned out that your numbers were stored as strings? In this video, I'll demonstrate two different ways to change the data type of a Series so that you can fix incorrect data types. I'll also show you the easiest way to convert a boolean Series to integers, which is useful for creating dummy/indicator variables for machine learning.
SUBSCRIBE to learn data science with Python:
[ Ссылка ]
JOIN the "Data School Insiders" community and receive exclusive rewards:
[ Ссылка ]
== RESOURCES ==
GitHub repository for the series: [ Ссылка ]
"astype" documentation: [ Ссылка ]
== LET'S CONNECT! ==
Newsletter: [ Ссылка ]
Twitter: [ Ссылка ]
Facebook: [ Ссылка ]
LinkedIn: [ Ссылка ]
Ещё видео!