Skip to main content

All Questions

Tagged with
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'] ]...
DeAnna's user avatar
  • 402
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
muuuuuj's user avatar
  • 77