Created
December 19, 2016 16:53
-
-
Save josep2/fa5370fb3438ec522f18e170fc892085 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val harmonic = new HarmonicMean | |
data.agg(harmonic(col("sales")).as("HarmonicMean")).show() | |
+-----------------+ | |
| GeometricMean| | |
+-----------------+ | |
|473.3701657458564| | |
+-----------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment