Skip to content

Commit

Permalink
CSV/DF/HTTP compat
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeason committed Nov 19, 2020
1 parent 7e2ca9a commit 57a8e7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ os:
- linux
- osx
julia:
- 1
- 1.3
- 1.4
- 1.5
- nightly
notifications:
Expand Down
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/FamaFrenchData.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57a8e7b

Please sign in to comment.