TigerGraph-DevLabs / SpotifyGraph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spotify Graph

Graph of songs, artists, albums, and playlists from Spotify

Prerequsities

Quick Set Up

  1. Get Started with TigerGraph Cloud
  2. Create an account on Kaggle (if directly importing data from kaggle).
  3. Run SpotifyGraph.ipynb, replacing it with the appropriate credentials.

Breakdown

Data

The data is from the Kaggle Spotify Dataset.

EDA

  • Adds a "Track Name" column with the genre

Scripts

Schema

Schema

Loads

None, see SpotifyGraph.ipynb

Query

There are a few queries to grab data for analysis, including:

  1. getArtists.gsql —> Grabs all of the Artist vertices.
  2. getGenres.gsql –> Grabs all of the Genre vetices.
  3. getPlaylists.gsql —> Grabs all of the Playlist vertices.
  4. getSongs.gsql —> Grabs all of the Song vertices.
  5. getSongsByArtists.gsql –> Grabs songs by artist.
  6. getSongsByGenre.gsql —> Grabs songs by genre.
  7. getSongsByPlaylist.gsql —> Grabs songs by playlist.
  8. getVerticesFromSongs.gsql —> Grabs genre, playlist, and artist by song.

Projects

TigerGraph_and_Cytoscape.ipynb —> Lab of creating an interactive Cytoscape dashboard with Plotly's Cytoscape and the TigerGraph Spotify Graph.

External Links

About


Languages

Language:Jupyter Notebook 99.2%Language:Python 0.8%