All Questions
2 questions
0
votes
0
answers
40
views
Need to insert a string based off numeric values from another column [duplicate]
I have the following dataframe
cols = ['Name', 'Production']
data = [['Well1', '0'],
['Well2', '1200'],
['Well3', '300'],
['Well4', '600'],
['Well5', '100']
]...
3
votes
4
answers
124
views
pandas keep numerical part
I have a set of data like:
0 1
0 type 1 type 2
1 type 3 type 4
How can I transfer it to:
0 1
0 1 2
1 3 4
perfer using applyor transform function