Python Snippets: Dropping Infinite Values From Dataframes in Pandas

Infinite values can occur more often than people expect, especially for calculated data. For example, in a recent post I calculated the Twitter Follower-Friend ratio by dividing the followers_count series by the friends_count series.


The Python Toolbox for Robotics