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

How do I add a record to a available dataframe? #62

Closed
phamthanhlam opened this issue Mar 23, 2018 · 2 comments
Closed

How do I add a record to a available dataframe? #62

phamthanhlam opened this issue Mar 23, 2018 · 2 comments

Comments

@phamthanhlam
Copy link

phamthanhlam commented Mar 23, 2018

Hello Kniren !
How do I add a record to a available dataframe?

df := dataframe.LoadRecords(
		[][]string{
			[]string{"A", "B", "C", "D"},
			[]string{"a", "4", "5.1", "true"},
			[]string{"k", "5", "7.0", "true"},
			[]string{"k", "4", "6.0", "true"},
			[]string{"a", "2", "7.1", "false"},
		},
	)

I want add 1 record in last df

@britojr
Copy link

britojr commented Mar 28, 2018

I think it could be done with RBind. Something like this:

df = df.RBind( dataframe.LoadRecords(
		[][]string{
			[]string{"A", "B", "C", "D"},
			[]string{"z", "9", "9.9", "true"},
		},
	)
)

@phamthanhlam
Copy link
Author

Thank you !

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

2 participants