Closed xgdgsc closed 6 years ago
well,
simply pad your file from ,open,close,high,low,volume,money
to
datetime,open,close,high,low,volume,money
and it will work correctly.
I think people moving from the python/pandas pipeline to julia would have many small issues like this. Now I see DataFrame.jl doesn' t have pandas-style time index. Do you have any suggestions on moving from python/pandas to Julia? Which package should I use to hold the time series data (is TimeSeries.jl the most mature one for now)? Or should I use Pandas.jl to load the data and write my own calculation functions on pure Julia Arrays? Thanks.
TBH, TimeSeries.jl isn't mature for me. It still need more works of integration with other ecosystem like DataStreams & TimeSeriesIO.jl (and make you easily convert data between DataFrames and TimeSeries, and gain both of functionalities, for example); and more works about ploting... etc.
Which package should I use to hold the time series data (is TimeSeries.jl the most mature one for now)?
There is a alternative: https://github.com/dysonance/Temporal.jl. It serves different style APIs from TimeSeries.jl. (But I personally want to switch to its style of indexing, I'm working on it)
Or should I use Pandas.jl to load the data and write my own calculation functions on pure Julia Arrays?
That's another feasible way, but you have to make your own functions like lag
, lead
on Julia's Array
.
I'm also planing to make TimeSeries.jl exporting some utilities for Julia Array
.
Thanks. Do you plan to support option to specify whether to read headers or not?
oh, I can do it.
I sent it as #358
I' m reading a typical csv generated by
pandas.to_csv()
in python, which has headers like:when read with
It will return a TimeArray with colnames of:
It would ignore the first row headers. Is there any way I can make it read headers?
I think people moving from the python/pandas pipeline to julia would have many small issues like this. Now I see DataFrame.jl doesn' t have pandas-style time index. Do you have any suggestions on moving from python/pandas to Julia? Which package should I use to hold the time series data (is TimeSeries.jl the most mature one for now)? Or should I use Pandas.jl to load the data and write my own calculation functions on pure Julia Arrays? Thanks.