'unable to use Pandas concat method method with a list object
I am using Jupyter
. I have two objects of type verticapy.vdataframe.vDataFrame
- train_vdf
and test_vdf
.
I combine them into a list (or at least it looks like that is what is happening) like this
combine = [train_vdf, test_vdf] #gives a list
type(combine)
shows result list
.
When I try to use combine
to create a pandas
dataframe
, I get error that combine
is of type vDataFrame
combine_pdf = pd.concat(combine)
TypeError: cannot concatenate object of type '<class 'verticapy.vdataframe.vDataFrame'>'; only Series and DataFrame objs are valid
Is combine
list or vDataFrame
?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|