conditional aggregation #6616
-
Hi All, I need some help regarding implementing conditional aggragation in ibis.
if it would be SQL i would do similar like this, but now I am lost. Thanks the help in advance. best D. ps .: There was another topic regarding conditional aggregation, but that is not working either. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @nagydavid ! Can you explain a little more about what is going wrong? Does the above code error? Or is it returning an unexpected result? If you can provide a small representative dataset (dummy data is fine) with the output you are looking for we will be in a much better position to help you. |
Beta Was this translation helpful? Give feedback.
Hi @nagydavid, I think you want something like the below. Hope this helps! Let us know if you have any questions/feedback.
Gist for better syntax highlighting: https://gist.github.com/lostmygithubaccount/bf8e60832dd2d8b7b80b4bde1f1c0266
Setup the same data from your example: