In [483]: A.assign(name=s) Out[483]: 0 1 name 0 0.876880 0.915174 0 1 0.644664 0.305387 1 2 0.930093 0.562453 2 3 0.807626 0.498871 3