Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Generate dataframe types with added/removed columns

Open
#2 0 comments 0 reactions 1 assignee View on GitHub

@eistaa is already working on this.

Since Sep 20, 2017.

Assessment

This issue has not been assessed yet.

Description

enhancement

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from expertanalytics/candas

All issues in expertanalytics/candas

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.