pandas PSA: s.isnull() on series of 100k int64s: 235 µs, s.isnull() on series of 100k 'object's: 5.91 seconds. that's like ... six orders of magnitude slower. /cc @BagelDaughterpic.twitter.com/UftrfvSYSD
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Of course, paying the up front cost of converting the series from object to categorical can sometimes rule this optimization out; depends on the data.
Oh shit this explains a lot about the code I saw in there. What's weird is that converting to a categorical FIRST and then doing the null check is actually still 3 orders of magnitude faster than a straight isnull() in this casepic.twitter.com/zgIOeInG11
Haha yeah it’s pretty silly/counterintuitive
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.