Hi.

In a dataframe, How can I execution a conditional sentence in a
aggregation. For example, Can I translate this SQL statement to DataFrame?:

SELECT name, SUM(IF table.col2 > 100 THEN 1 ELSE table.col1)
FROM table
GROUP BY name

Thanks!!!!
-- 
Regards.
Miguel

Reply via email to