diff --git a/examples/tour.jl b/examples/tour.jl index 6b43cb1e..31bdf0c3 100644 --- a/examples/tour.jl +++ b/examples/tour.jl @@ -10,6 +10,13 @@ using Onda, TimeSpans, DataFrames, Dates, UUIDs, Test, ConstructionBase, Arrow +##### +##### Ignore this; it's just a hacky monkey patch for https://github.com/JuliaData/DataFrames.jl/issues/2689 +##### + +DataFrames.fromcolumns(x::Tables.CopiedColumns, names; copycols::Bool=true) = invoke(DataFrames.fromcolumns, Tuple{Any,Any}, x, names; copycols) +DataFrames.DataFrame(x::Tables.CopiedColumns; copycols::Bool=false) = DataFrame(Tables.source(x); copycols=copycols) + ##### ##### generate some mock data ##### @@ -87,6 +94,7 @@ path_to_annotations_file = joinpath(root, "test.onda.annotations.arrow") write_annotations(path_to_annotations_file, annotations) Onda.log("wrote out $path_to_annotations_file") + ##### ##### basic Onda + DataFrames patterns #####