image_output_1.png
import pandas as pd

import pandas as pd
df = pd.read_csv('../input/taylor_swift_lyrics.csv', encoding='latin-1')

songs = df.groupby('track_title').agg({'lyric': lambda x: ' '.join(x), 'year': 'mean'}).reset_index()

len(songs)