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
  • 32,567
  • 20
  • 113
  • 146
priyanka3
  • 149
  • 1
  • 3
  • 13

0 Answers0