0

I have a data frame and want to append some text with all the elements of it.

For example

My Data frame

1
2
3
4

I want the resulting data frame as

number 1
number 2
number 3
number 4

So the "number" string is in common which I have to append with each elements of the dataframe. I am writing a for loop to iterate through the data frame but I do not know how to append "number" in each row.

smci
  • 29,564
  • 18
  • 109
  • 144
priyanka3
  • 49
  • 3
  • 12

0 Answers0