You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Using pandas master/github. In this example, we get 4 times the same column after applying an element-wise operation:
The text was updated successfully, but these errors were encountered: