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

Series & Dataframe append/insert at a given position #109

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

Conversation

mannharleen
Copy link

Resolves #73 #69

A method called "Insert" has been added to enable appending to an existing Series or Dataframe at a given position.

Open on how to improve the implementation.

@mannharleen mannharleen requested a review from danicat January 19, 2020 21:36
dataframe/dataframe_test.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
go.sum Outdated Show resolved Hide resolved
Comment on lines +281 to +286
s.elements = append(s.elements.(stringElements)[:pos], append(news.elements.(stringElements), s.elements.(stringElements)[pos:]...)...)
case Int:
s.elements = append(s.elements.(intElements)[:pos], append(news.elements.(intElements), s.elements.(intElements)[pos:]...)...)
case Float:
s.elements = append(s.elements.(floatElements)[:pos], append(news.elements.(floatElements), s.elements.(floatElements)[pos:]...)...)
case Bool:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look like you have used gofmt on this code. Please run it on save before pushing.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funny, gofmt is producing this output for me. what do you suggest?

series/series_test.go Show resolved Hide resolved
@kniren kniren changed the base branch from master to dev January 20, 2020 09:15
@mannharleen mannharleen requested review from kniren and removed request for danicat January 21, 2020 05:33
@kniren
Copy link
Collaborator

kniren commented May 1, 2020

If you resolve the conflicts currently present, I'll just merge this.

@julienrbrt
Copy link
Contributor

@mannharleen any ETA on this maybe? I'll gladly use your changes 😄

@mannharleen
Copy link
Author

Sorry both for the delays. Kniren and my timings were off. I ll take a look over the weekend.

…st) (#1)

* Set up TravisCI

* Make fixColnames faster (go-gota#112)

Co-authored-by: Carl Kingsford <[email protected]>

* Add dataframe.Concat (go-gota#104)

Concat concatenates rows of two dataframes like RBind, but also
includes the unmatched columns.

* Combining filters with AND and user-defined filters (go-gota#99)

* added missing closing brace in series/series.go (function Map)

* removed empty line at beginning of function series/series.go/Map

* implemented user-defined comparator for series'

* added and semantics for row filtering with multiple filters

* refined README for filtering with OR, AND, and user-defined filters (CompFunc)

* Run go mod tidy

* Add extra checks for TravisCI

* Use UseNumber() when parsing JSON to interface{} (go-gota#116)

* Add ReadHTML to support loading HTML tables (go-gota#107)

* Allow numeric column-index for filters (go-gota#106)

Co-authored-by: Alex Sanchez <[email protected]>
Co-authored-by: gmarcais <[email protected]>
Co-authored-by: Carl Kingsford <[email protected]>
Co-authored-by: Mura Li <[email protected]>
Co-authored-by: Christoph Laaber <[email protected]>
Co-authored-by: gautamoncloud9 <[email protected]>
@mannharleen
Copy link
Author

Thanks Julien. For the PR

@julienrbrt
Copy link
Contributor

julienrbrt commented Jun 15, 2020

There seems to still have conflicts, probably still need rebasing.

image

I guess it should show the dev branch there instead.

EDIT: Should be fixed with rebasing: mannharleen#2 😄

@julienrbrt julienrbrt mentioned this pull request Jul 14, 2020
@woshidama323
Copy link

Any update?

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.

Support Append data (new row) to a Series and/or DataFrame
4 participants