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

rename columns name using a function #23

Closed
femtotrader opened this issue Feb 7, 2018 · 0 comments
Closed

rename columns name using a function #23

femtotrader opened this issue Feb 7, 2018 · 0 comments

Comments

@femtotrader
Copy link
Contributor

femtotrader commented Feb 7, 2018

Following #20 (comment)

A rename! function implementation could also accept a function as 2nd parameter which could rename column name in place.

Something like

rename!(data, c->replace(c, " ", ""))

Although TS column names are Symbol... not String so it will become

rename!(data, c->Symbol(replace(String(c), " ", "")))

but I'd prefer the Symbol/String complexity be hidden.

@femtotrader femtotrader changed the title rename columns using a function rename columns name using a function Feb 7, 2018
femtotrader added a commit to femtotrader/Temporal.jl that referenced this issue Oct 31, 2018
@femtotrader femtotrader mentioned this issue Oct 31, 2018
dysonance pushed a commit that referenced this issue Oct 31, 2018
* Rename
Closes #22
Closes #23

* Remove run test by filename
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

No branches or pull requests

1 participant