Pyspark, Mongodb, AWS, Machine Learning.
MongoClient client = MongoClient() db = client[dbname] collection = db[collection_name] fields = {'musicbrainz.songs.year':1, 'analysis.segments_timbre':1, 'analysis.songs.energy':1, 'analysis.songs.danceability':1, 'metadata.songs.title':1, 'metadata.songs.artist_name': 1, '_id':0} train_year_data