From 57a8e7b55886c88485f0c95ffb2083fb3b3fb075 Mon Sep 17 00:00:00 2001 From: Tyler Beason Date: Wed, 18 Nov 2020 19:58:16 -0700 Subject: [PATCH] CSV/DF/HTTP compat --- .travis.yml | 2 +- Project.toml | 6 +++--- src/FamaFrenchData.jl | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index d5f288e..bb22a29 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,8 +5,8 @@ os: - linux - osx julia: + - 1 - 1.3 - - 1.4 - 1.5 - nightly notifications: diff --git a/Project.toml b/Project.toml index 6b6a963..2c74784 100644 --- a/Project.toml +++ b/Project.toml @@ -11,9 +11,9 @@ HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3" ZipFile = "a5390f91-8eb1-5f08-bee0-b1d1ffed6cea" [compat] -CSV = "^0.5.15, 0.6, 0.7" -DataFrames = "0.19.4, 0.20, 0.21" -HTTP = "^0.8.11" +CSV = "^0.7.6, 0.8" +DataFrames = "0.19.4, 0.20, 0.21, 0.22" +HTTP = "^0.8.11, 0.9" ZipFile = "0.8.4, 0.9" julia = "^1.3" diff --git a/src/FamaFrenchData.jl b/src/FamaFrenchData.jl index b06302e..937e865 100644 --- a/src/FamaFrenchData.jl +++ b/src/FamaFrenchData.jl @@ -137,7 +137,7 @@ function parsefile(lines;kwargs...) dfvec = Vector{DataFrame}(undef,ntables) for i in 1:ntables ios = IOBuffer(string(stringarray[tranges[i]]...)) - dfvec[i] = CSV.File(ios;csvopt...) |> DataFrame + dfvec[i] = CSV.read(ios,DataFrame;csvopt...) rename!(dfvec[i],Symbol(first(names(dfvec[i]))) => :Date) close(ios) end