Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Data Merging in Python

$
0
0

@rock_bt wrote:

Hey all,

I have a DataFrame like:

df = pd.DataFrame({'B': ['B2', 'B3', 'B4', 'B5'],
                              'D': ['D2', 'D3', 'D4', 'D5']}

And I want to create a ‘Key’ column

'key': ['B2D2','B2D3','B2D4'....'B3D2','B3D3'......'B5D5']

Please anyone tell me how to do in python

Thank You

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles