Skip to content

Commit 06eefc9

Browse files
committed
Use DataFramesMeta.@subset instead of @where
1 parent 083de40 commit 06eefc9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CSV = "0.8 - 0.10"
2525
CodecZlib = "0.7"
2626
ColorSchemes = "3"
2727
DataFrames = "1.2 - 1.3"
28-
DataFramesMeta = "0.7 - 0.11"
28+
DataFramesMeta = "0.8 - 0.11"
2929
Distributions = "0.23, 0.25"
3030
HypothesisTests = "0.10"
3131
Optim = "^1.3"

src/datasets.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function co2(full::Bool = false)
5959
(Dates.isleapyear(x) & (Dates.month(x) == 2)) ? Dates.day(x) != 29 : true
6060
end
6161

62-
@where(co2_sdf, in.(:date, Ref(dates_co2_stl)))
62+
@subset(co2_sdf, in.(:date, Ref(dates_co2_stl)))
6363

6464
end
6565

@@ -105,7 +105,7 @@ function seaborne(full::Bool = false)
105105
sb_df = open(joinpath(path, "seaborne.csv.gz")) do file
106106
CSV.read(GzipDecompressorStream(file),DataFrame,
107107
dateformat = "mm/dd/yyyy HH:MM:SS pp",
108-
types = Dict(:date => Date))
108+
types = Dict(:year => Date))
109109
end
110110

111111
if full

0 commit comments

Comments
 (0)