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

df.applymap duplicates data with frame has dupe columns #2786

Closed
vincentarelbundock opened this issue Jan 31, 2013 · 4 comments
Closed

df.applymap duplicates data with frame has dupe columns #2786

vincentarelbundock opened this issue Jan 31, 2013 · 4 comments
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Milestone

Comments

@vincentarelbundock
Copy link

Using pandas master/github. In this example, we get 4 times the same column after applying an element-wise operation:

In [1]: import numpy as np
In [2]: import pandas as pd
In [3]: df = pd.DataFrame(np.random.random((3,4)))
In [4]: cols = pd.Index(['a','a','a','a'])
In [5]: df.columns = cols
In [6]: df.applymap(str)
Out[6]: 
                a               a               a               a
0  0.320051885413  0.320051885413  0.320051885413  0.320051885413
1  0.967238549103  0.967238549103  0.967238549103  0.967238549103
2  0.913201809648  0.913201809648  0.913201809648  0.913201809648
@ghost
Copy link

ghost commented Mar 31, 2013

disabled applymap for frames with dupe columns until this gets fixed proper.
7916e76

@ghost
Copy link

ghost commented Apr 1, 2013

moved to #3230, raising an error will do for 0.11.
Updated RELEASE.rst

@ghost
Copy link

ghost commented May 3, 2013

FYI, Fixed (rather then merely prevented) by #3509.

@vincentarelbundock
Copy link
Author

thanks for your work!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

No branches or pull requests

1 participant