Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23160

How to mapping many column in to one column

$
0
0

first data frame:

name        age   sexsmith row   26    malesam smith   30    malesusan storm   25  female

second data frame:

name        age   sex    nick_namesmith row   26    male   smitysam smith   30    male   sammysusan storm   25  female suanny

output expected:

name         age   sexsmith row   26    malesam smith   30    malesusan storm   25  femalesmity             msammy             msuanny            f

How can i dynamic map from other df to other df column?


Viewing all articles
Browse latest Browse all 23160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>