-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add example for pandas in README #84
Comments
Hello, Thanks for this. But could you clarify the purpose and context of this piece of code? I don't see exactly which problem it addresses. |
It is just an example on how to apply an interval dict on a pandas dataframe column. Nothing more |
Ok, so a kind of value-based map function that, depending on the value, apply a different function on a column. Right? To some extent, the goal of this example is to show how to apply different functions without having to rely on combinations of "where"? |
Exactly |
Ok, thanks ! Let's keep the "information" label for this issue, and I'll refer to it in a (not yet created) "recipe" section of the documentation. |
I just used your library with pandas, but I could not find a single example on how to do this, so I though it would be nice to leave one here. I applied an
IntervalDict
on a column:The text was updated successfully, but these errors were encountered: