Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Emmanuel-R8
Copy link
Contributor

No description provided.

src/TS.jl Outdated
@@ -201,10 +201,10 @@ julia> ts = TS([random(10) random(10)], dates) # matrix object
"""
struct TS

coredata :: DataFrame
coredata::DataFrame
Copy link
Member

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))
Copy link
Member

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.

Copy link
Contributor Author

@Emmanuel-R8 Emmanuel-R8 left a 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

@smishr
Copy link

smishr commented Mar 3, 2023

@chiraganand @codetalker7 are Base.copy and Base.similar required? Either close PR or review and suggest changes to be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants