What Pandas users should know about NumPy 2.0 and dtypes

Опубликовано: 18 Июнь 2024
на канале: Python and Pandas with Reuven Lerner
1,624
86

If you use Pandas, then you're also (indirectly) using NumPy. And NumPy 2.0, which was released earlier this week, introduces a bunch of changes — including changes to what happens when you broadcast math operations to a Pandas series.

In this video, I explain the old behavior and the new one, consider what this means, and give you some ways to think about and handle it.

(The video was already long, so I didn't mention — but perhaps should have — that you can always use "astype" to get a new series back, with a different dtype, if you want to perform a conversion. You just have to do it explicitly, rather than expecting automatic promotion.)

Level up your Python and Pandas skills at https://LernerPython.com !


Смотрите видео What Pandas users should know about NumPy 2.0 and dtypes онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Python and Pandas with Reuven Lerner 18 Июнь 2024. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 1,624 раз и оно понравилось 86 посетителям.