Aug. 9, 2023, 10:43 a.m. | Python and Pandas with Reuven Lerner

Reuven Lerner www.youtube.com

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.

faster operators pandas series show together values video

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote