Using | in Pandas? Consider the "isin" method instead

Опубликовано: 09 Август 2023
на канале: Python and Pandas with Reuven Lerner
1,017
54

If you're looking to see if a Pandas series contains any of several values, then you might be tempted to use several | operators strung together. It turns out that the "isin" method is not only more readable, but runs much faster, as I show in this video.


Смотрите видео Using | in Pandas? Consider the "isin" method instead онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Python and Pandas with Reuven Lerner 09 Август 2023. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 1,017 раз и оно понравилось 54 посетителям.