xKDR / TSFrames.jl

Timeseries in Julia
MIT License
92 stars 22 forks source link

Constructor: Create empty TSFrame if an empty DataFrame is provided #183

Open chiraganand opened 6 months ago

chiraganand commented 6 months ago

There is a constructor for creating an empty TSFrame object but currently it does not work with a DataFrame without any columns. Ideally, TSFrame(DataFrame()) should create a TSFrame with an Index column and 0 other non-index columns and 0 rows.

 julia> TSFrame(DataFrame())
 0×0 TSFrame with Int64 Index