Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Maybe something like this would help: stackoverflow.com/questions/20180324/… Commented May 5, 2019 at 10:13
  • Does the answer below answer your question? With pandas I don't think there's a cleaner way of doing this. Commented Jun 28, 2019 at 6:59