concat(axis=1) currently is not supported
See original GitHub issueConcatenating along the columns is a common use case but currently isn’t supported in koalas. We can achieve this by joining the dataframes by their index.
>>> df4 = pd.DataFrame([['bird', 'polly'], ['monkey', 'george']],
... columns=['animal', 'name'])
>>> pd.concat([df1, df4], axis=1)
letter number animal name
0 a 1 bird polly
1 b 2 monkey george
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
python - Concat not working as expected - Stack Overflow
I want to combine this 2 into 1 file. My approach push the data into dataframe and used concat on them get the...
Read more >Merge, join, and concatenate — pandas 0.24.2 documentation
This is useful if you are concatenating objects where the concatenation axis does not have meaningful indexing information. Note the index values on...
Read more >dask.dataframe.multi.concat - Dask documentation
When axis=1, concatenate DataFrames column-wise: Allowed if all divisions are known. If any of division is unknown, it raises ValueError. Parameters.
Read more >Pandas Concat Two DataFrames Explained
When you concat() two pandas DataFrames on rows, it. ... When you use concat() to join two DataFrames, it supports only inner and...
Read more >Pandas concat() Examples - DigitalOcean
Pandas concat() method is used to concatenate pandas objects such as ... sort: Sort non-concatenation axis if it is not already aligned when ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this can be done with
join(index_column)
Are you interested in submitting a PR?You can work around as below:
In fact, are you interested in creating a PR like the above? cc @itholic, @charlesdong1991, @harupy