Some parts of the FredData.jl API could be made more idiomatic. Notable examples are
df(s::FredSeries accesses the DataFrame, but df is commonly used as a variable
get_data(f, series) downloads the specified data series. It would be better if there was a function that wascommonly used across packages for this sort of task, such as get, fetch, or download.
I find that the functions used to access data from the FredSeries object are not very intuitive. It may make sense to replace realtime_end with get_realtime_end e.g. One could also access fields by defining methods for getindex and using s[:realtime_end]. (This latter solution allows s[:data] which seems better than df(s)).
Some parts of the FredData.jl API could be made more idiomatic. Notable examples are
df(s::FredSeries
accesses theDataFrame
, butdf
is commonly used as a variableget_data(f, series)
downloads the specified data series. It would be better if there was a function that wascommonly used across packages for this sort of task, such asget
,fetch
, ordownload
.I find that the functions used to access data from the
FredSeries
object are not very intuitive. It may make sense to replacerealtime_end
withget_realtime_end
e.g. One could also access fields by defining methods forgetindex
and usings[:realtime_end]
. (This latter solution allowss[:data]
which seems better thandf(s)
).Any input is welcomed from those browsing.