Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
genmeblog committed Mar 24, 2024
1 parent 2865d59 commit 9a1d43b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions notebooks/index.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4578,19 +4578,15 @@ stocks





(-> stocks
(tc/group-by (fn [row]
{:symbol (:symbol row)
:year (tech.v3.datatype.datetime/long-temporal-field :years (:date row))}))
{:symbol (:symbol row)
:year (tech.v3.datatype.datetime/long-temporal-field :years (:date row))}))
(tc/aggregate #(tech.v3.datatype.functional/mean (% :price)))
(tc/order-by [:symbol :year]))





(-> stocks
(tc/group-by (juxt :symbol #(tech.v3.datatype.datetime/long-temporal-field :years (% :date))))
(tc/aggregate #(tech.v3.datatype.functional/mean (% :price)))
Expand Down

0 comments on commit 9a1d43b

Please sign in to comment.