Syntax Error when I enter a dictionary with multiple values as a DataFrame in Jupyter

  dataframe, pandas, python, syntax-error

I’m getting a syntax error when I run this code in Jupyter. I’ve double and triple checked.

songs = {'Album':' ['thriller','Back','Moon'],
         'Released': [1998, 1976, 12000]}
         
songs_frame = pd.DataFrame(songs)

Source: Python Questions

LEAVE A COMMENT