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

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024
  • 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.

ความคิดเห็น • 2