data = ['Vachitaya aapuuuuuuuuu','Sing in the rain' ,'Great power comes wih great responsibility']
df = pd.DataFrame(data, columns = ['Sent'])
df
|
Sent |
| 0 |
Vachitaya aapuuuuuuuuu |
| 1 |
Sing in the rain |
| 2 |
Great power comes wih great responsibility |
df.columns = ['Sentence']
|
Sentence |
| 0 |
Vachitaya aapuuuuuuuuu |
| 1 |
Sing in the rain |
| 2 |
Great power comes wih great responsibility |
df.rename(columns={'Sentence':'my_sent'},inplace=True)
|
my_sent |
| 0 |
Vachitaya aapuuuuuuuuu |
| 1 |
Sing in the rain |
| 2 |
Great power comes wih great responsibility |