/ arrow2df.jl
arrow2df.jl
1 using DataFrames, Arrow, Chain 2 3 """ 4 # arrow2df(string) 5 6 Given the filename as a **String**, return the *Arrow* file as a **DataFrame**. 7 8 This function depends on these packages: 9 - Arrow 10 - DataFrames 11 - Chain 12 13 ## Examples 14 15 ```julia-repl 16 julia> df = arrow2df("/home/r0b0ty/Julia/mydata.arrow") 17 679395×42 DataFrame 18 . 19 . 20 . 21 22 ``` 23 """ 24 function arrow2df(filename::String) 25 @chain Arrow.Table(filename) begin 26 DataFrame(_) 27 copy(_) 28 end 29 end