-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add constructor from TS to TS. Add Base.copy and Base.similar with the DataFrame semantics. #34
base: main
Are you sure you want to change the base?
Conversation
src/TS.jl
Outdated
@@ -201,10 +201,10 @@ julia> ts = TS([random(10) random(10)], dates) # matrix object | |||
""" | |||
struct TS | |||
|
|||
coredata :: DataFrame | |||
coredata::DataFrame |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please commit formatting changes such as space removals in a separate PR. It gets difficult to review the diffs.
src/utils.jl
Outdated
|
||
``` | ||
""" | ||
Base.similar(ts::TS, rows::Integer=nrow(ts)) = TS(similar(ts.coredata, rows)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change similar(ts.coredata, ...)
to use DataFrames.similar()
? This is to avoid conflicts if both packages are loaded into REPL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting changes reverted. similar -> DataFrames::similar
@chiraganand @codetalker7 are Base.copy and Base.similar required? Either close PR or review and suggest changes to be merged. |
No description provided.