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

concatenation between vector and dataframe #227

Open
genya0407 opened this issue Aug 23, 2016 · 4 comments
Open

concatenation between vector and dataframe #227

genya0407 opened this issue Aug 23, 2016 · 4 comments

Comments

@genya0407
Copy link
Contributor

genya0407 commented Aug 23, 2016

Daru::DataFrame cannot be concatenated with Daru::Vector. The inverse is also true.

Pandas can do it.
http://pandas.pydata.org/pandas-docs/stable/merging.html#concatenating-with-mixed-ndims

@gnilrets
Copy link
Contributor

Daru can concatenate dataframes with a different set of vectors. Use #to_df on anything that might be a vector and you should be able to concatenate them.

@gnilrets
Copy link
Contributor

@v0dro - Makes me think we might want to litter many of the dataframe methods with #to_df at the beginning to force anything that might be a vector into a single-vector dataframe.

@v0dro
Copy link
Member

v0dro commented Aug 23, 2016

@v0dro - Makes me think we might want to litter many of the dataframe methods with #to_df at the beginning to force anything that might be a vector into a single-vector dataframe.

That can be a quick fix for now. A more long term solution would be implementing those methods natively for Vector.

@genya0407
Copy link
Contributor Author

@gnirets Thanks, I'll concat with that solution 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants