0

I have df that looks as such:

        Sentence                Label      Sentence2
0  The dog jumped on the cat     Dog         The dog sits in his basket    
1  The cat drank the milk        Cat         My pet cat is adorable
2  I saw a shark in Australia    Shark       The shark has sharp teeth

I want to merge Sentence and Sentence2 columns so that they are in one column but with both having the labels. It should look as such:

        Sentence                Label
0  The dog jumped on the cat     Dog          
1  The cat drank the milk        Cat         
2  I saw a shark in Australia    Shark       
3  The dog sits in his basket    Dog
4  My pet cat is adorable        Cat
5  The shark has sharp teeth     Shark

Many thanks

geds133
  • 1,121
  • 3
  • 11
  • 32

0 Answers0