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

Preserving original column names after merge #160

Closed
deHasara opened this issue Sep 25, 2020 · 1 comment
Closed

Preserving original column names after merge #160

deHasara opened this issue Sep 25, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@deHasara
Copy link
Collaborator

Example

product=pd.DataFrame({
   'Product_ID':[101,102,103,104,105,106,107],
   'Price':[299.0,1350.50,2999.0,14999.0,145.0,110.0,79999.0],
})


customer=pd.DataFrame({
   'id':[1,2,3,4,5,6,7,8,9],
   'age':[20,25,15,10,30,65,35,18,23],
   'Product_ID':[101,0,106,0,103,104,0,0,107],
})
modin_merge = customer.merge(product)
print(modin_merge)

     lt-0    lt-1    lt-2    rt-3    rt-4
0     1      20      101    101.0    299.0	
1 	
2 	
3 	
4 	
5 
6 	
7
8 

Column names in the merged table should be the same as that of the original tables

@deHasara deHasara added the enhancement New feature or request label Sep 25, 2020
@vibhatha
Copy link
Collaborator

this will be fixed with this PR

@vibhatha vibhatha self-assigned this Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants