daru
daru copied to clipboard
concatenation between vector and dataframe
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
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.
@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 - 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.
@gnirets Thanks, I'll concat with that solution 😄