1

I need to write a code which can concat all the sentences present in a dataframe according to the category.

For example:

Colour sentences
Red roses are red
Blue sky is blue
Red Red is my favourite colour
Blue Oceans are blue

Expected output:

Colour sentences
Red roses are red Red is my favourite colour
Blue sky is blue Oceans are blue
Timus
  • 10,974
  • 5
  • 14
  • 28
Asis
  • 9
  • 2
  • Please make your data frames readable, or even better, provide your frames as code so that one can just cope-paste them. – ko3 Jul 25 '22 at 07:49

0 Answers0