Last active
December 15, 2015 01:59
-
-
Save milktrader/5184142 to your computer and use it in GitHub Desktop.
Speed trials of an Array{TimeStamp} vs DataFrame
This file contains 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
# var is an Array{TimeStamp} | |
# df is a DataFrame | |
# each is 15850 rows long | |
julia> @elapsed mean(df["Open"]) | |
0.176795466 | |
julia> @elapsed mean(var) | |
0.017835577 | |
julia> mean(var) == mean(df["Open"]) | |
true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
De-vectorized mean function