Github user rxin commented on the pull request:
https://github.com/apache/spark/pull/7841#issuecomment-155204885
@aray I talked to a few more people about this. Most like the 2nd API more
(groupBy.pivot.agg).
I think it'd also be better to remove the requirement to specify values,
e.g. just take in a column without the values. So it looks like
```scala
courseSales.groupBy($"year").pivot($"course").agg(sum($"earnings"))
```
Can you update the pull request? Thanks.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]