Generate dataframe types with added/removed columns
@eistaa is already working on this.
Since Sep 20, 2017.
Assessment
This issue has not been assessed yet.
Description
Extend
To extend a datafram we should be able to do:
candas::ihdf<T1, T2> df = dataframe{};
/* extend last */
auto df2 = df.extend_last(std::vector<T3>(df.size())); // decltype(df2) should be <T1, T2, T3>
// optional: values from argument is moved into the new column
// OR
auto df2 = candas::extend_last(std::move(df), std::vector<T3>{});
/* extend first */
auto df3 = df.extend_first(std::vector<T3>(df.size())); // decltype(df3) should be <T3, T1, T2>
// optional: values from argument is moved into the new column
// OR
auto df3 = candas::extend_first(std::move(df), std::vector<T3>{});
Remove
To remove a column we should be able to do:
candas::ihdf<T1, T2, T3> df = dataframe{};
std::vector<T2> vec{};
auto df2 = df.remove_col<1>(*vec); // decltype(df2) should be <T1, T3>
// optional: removed column is moved into argument vec
// OR
auto df2 = candas::remove_col<2>(std::move(df), *vec);
- Dominant language
- C++
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from expertanalytics/candas
-
Dataframe viewsOpenenhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
discussion needed enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Dataframe iteratorMay be free again @skavhaug claimed this 3318 days ago, and no pull request is open. Openenhancement
expertanalytics/candas#3 · 1 assignee ·
All issues in expertanalytics/candas
Similar issues
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Niko1221/Strata#3673 · 2 comments ·
Maintainers usually reply within 3 days
-
bug P4
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
open-astro/AlpacaBridge#1520 ·
Maintainers usually reply within 1 day
-
[Docs] CONTRIBUTING still says FreeType 2.14.3 and TabLabel.h says ImGui 1.92.9b after the bumpsPossibly taken @mgradwohl claimed this today. Openagent:WSL documentation LOW
Difficulty 1/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day