diff --git a/10-feature-store.ipynb b/10-feature-store.ipynb index f77a495..ac76dd2 100644 --- a/10-feature-store.ipynb +++ b/10-feature-store.ipynb @@ -1585,27 +1585,9 @@ }, { "cell_type": "code", - "execution_count": 68, + "execution_count": 71, "id": "d6c8ab48-2962-48a2-92f9-3b9583cd718f", "metadata": {}, - "outputs": [], - "source": [ - "track_aggregated_features = track_entity_type.read(\n", - " entity_ids=[\n", - " \"spotify:track:44FKqeyePqfAcWfJKJkpGy\", \n", - " \"spotify:track:2JozsL1ayPPjrZsOlQwHuk\", \n", - " \"spotify:track:5VGz4dSlyNwcPgokpwHKtr\",\n", - " # \"spotify:track:0tlhK4OvpHCYpReTABvKFb\"\n", - " ],\n", - " feature_ids=TRACKS_FEATURES_IDS,\n", - ")" - ] - }, - { - "cell_type": "code", - "execution_count": 69, - "id": "45926b1e-a57d-4944-b516-5b5ca41a58a5", - "metadata": {}, "outputs": [ { "data": { @@ -1778,15 +1760,120 @@ "[3 rows x 23 columns]" ] }, - "execution_count": 69, + "execution_count": 71, "metadata": {}, "output_type": "execute_result" } ], "source": [ + "# return all feature fields for an Entity\n", + "track_aggregated_features = track_entity_type.read(\n", + " entity_ids=[\n", + " \"spotify:track:44FKqeyePqfAcWfJKJkpGy\", \n", + " \"spotify:track:2JozsL1ayPPjrZsOlQwHuk\", \n", + " \"spotify:track:5VGz4dSlyNwcPgokpwHKtr\",\n", + " ],\n", + " feature_ids=TRACKS_FEATURES_IDS,\n", + ")\n", + "\n", "track_aggregated_features" ] }, + { + "cell_type": "code", + "execution_count": 72, + "id": "be9bc8a3-0d7d-4531-9fea-dd2c38d34307", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + " | entity_id | \n", + "track_name_can | \n", + "artist_name_can | \n", + "artist_genres_can | \n", + "
---|---|---|---|---|
0 | \n", + "spotify:track:2JozsL1ayPPjrZsOlQwHuk | \n", + "Tweezer Reprise | \n", + "Phish | \n", + "'blues rock', 'jam band' | \n", + "
1 | \n", + "spotify:track:44FKqeyePqfAcWfJKJkpGy | \n", + "That's It For The Other One [Live in San Franc... | \n", + "Grateful Dead | \n", + "'classic rock', 'cosmic american', 'country ro... | \n", + "
2 | \n", + "spotify:track:5VGz4dSlyNwcPgokpwHKtr | \n", + "Junior | \n", + "Widespread Panic | \n", + "'athens indie', 'jam band', 'roots rock', 'sou... | \n", + "