Skip to content

Scratchpad

Hao Cheng edited this page Dec 19, 2017 · 2 revisions

Scratchpad

use dfy = DataFrame(x1=1:size(y,1),y=y), not dfy = DataFrame([1:size(y,1) y]), for the first one dfy[:y] gives DataArrays.DataArray{Float64,1} (sth in DataFrames), the second one gives Array{Float64,1}, THIS MAKES errors with convert(Array,dfy[:y],0.0) --- convert NA to 0.

Clone this wiki locally