I wanted to analyze the average popularity between the genres to identify trends and figure out which genre is the most popular and least popular.
Here I have filtered out the top tracks by popularity and specifically in the Hip-Hop genre. By filtering out top tracks based on certain criteria it allows us to focus on a subset of the data for deeper analysis. Could be useful for exploring highly rated songs within the “Hip-Hop” genre.
# Filtering top tracks by popularity and Hip Hop genre
dt_top_tracks <- spotify_dt[popularity > 75 & main_genre == "Hip Hop" ]
dt_top_tracks
Key: <main_genre>
track_name
<char>
1: THATS WHAT I WANT
2: HIGHEST IN THE ROOM
3: The Box
4: Gangnam Style (강남스타일)
5: Without Me
6: Hey Ya!
7: U Can't Touch This
8: HUMBLE.
9: Crazy
10: Ready or Not
11: STAR WALKIN' (League of Legends Worlds Anthem)
12: Regulate
13: Killing Me Softly With His Song
14: Trip
15: Lose Yourself
16: DÁKITI
17: ROCKSTAR (feat. Roddy Ricch)
18: Heartless
19: For The Night (feat. Lil Baby & DaBaby)
20: Players
21: Go Crazy
22: Godzilla (feat. Juice WRLD)
23: Praise The Lord (Da Shine) (feat. Skepta)
24: edamame (feat. Rich Brian)
25: Mask Off
26: Lucid Dreams
27: Not Afraid
28: SAD!
29: Ms. Jackson
30: SICKO MODE
track_name
artist_name_s
<char>
1: Lil Nas X
2: Travis Scott
3: Roddy Ricch
4: PSY
5: Eminem
6: Outkast
7: MC Hammer
8: Kendrick Lamar
9: Gnarls Barkley
10: Fugees, Ms. Lauryn Hill, Wyclef Jean, Pras
11: Lil Nas X
12: Warren G, Nate Dogg
13: Fugees, Ms. Lauryn Hill
14: Ella Mai
15: Eminem
16: Bad Bunny, Jhayco
17: DaBaby, Roddy Ricch
18: Kanye West
19: Pop Smoke, Lil Baby, DaBaby
20: Coi Leray
21: Chris Brown, Young Thug
22: Eminem, Juice WRLD
23: A$AP Rocky, Skepta
24: bbno$, Rich Brian
25: Future
26: Juice WRLD
27: Eminem
28: XXXTENTACION
29: Outkast
30: Travis Scott
artist_name_s
album_name
<char>
1: MONTERO
2: HIGHEST IN THE ROOM
3: Please Excuse Me for Being Antisocial
4: Gangnam Style (강남스타일)
5: The Eminem Show
6: Speakerboxxx/The Love Below
7: Please Hammer Don't Hurt 'Em
8: DAMN.
9: St. Elsewhere
10: The Score (Expanded Edition)
11: STAR WALKIN' (League of Legends Worlds Anthem)
12: Regulate… G Funk Era
13: The Score (Expanded Edition)
14: Ella Mai
15: SHADYXV
16: EL ÚLTIMO TOUR DEL MUNDO
17: BLAME IT ON BABY
18: 808s & Heartbreak
19: Shoot For The Stars Aim For The Moon
20: Players
21: Slime & B
22: Music To Be Murdered By
23: TESTING
24: edamame (feat. Rich Brian)
25: FUTURE
26: Goodbye & Good Riddance
27: Recovery
28: ?
29: Stankonia
30: ASTROWORLD
album_name
album_artist_name_s album_release_date disc_number
<char> <char> <num>
1: Lil Nas X 2021-09-17 1
2: Travis Scott 2019-10-04 1
3: Roddy Ricch 2019-12-06 1
4: PSY 2012-01-01 1
5: Eminem 2002-05-26 1
6: Outkast 2003 2
7: MC Hammer 1990-02-20 1
8: Kendrick Lamar 2017-04-14 1
9: Gnarls Barkley 2006-04-24 1
10: Fugees, Ms. Lauryn Hill, Wyclef Jean 1996-02-13 1
11: Lil Nas X 2022-09-22 1
12: Warren G 1994-06-07 1
13: Fugees, Ms. Lauryn Hill, Wyclef Jean 1996-02-13 1
14: Ella Mai 2018-10-12 1
15: Various Artists 2014-11-24 2
16: Bad Bunny 2020-11-27 1
17: DaBaby 2020-04-17 1
18: Kanye West 2008-11-24 1
19: Pop Smoke 2020-07-03 1
20: Coi Leray 2022-11-30 1
21: Chris Brown, Young Thug 2020-05-08 1
22: Eminem 2020-01-17 1
23: A$AP Rocky 2018-05-25 1
24: bbno$, Rich Brian 2021-07-24 1
25: Future 2017-06-30 1
26: Juice WRLD 2018-12-10 1
27: Eminem 2010-06-18 1
28: XXXTENTACION 2018-03-16 1
29: Outkast 2000-10-31 1
30: Travis Scott 2018-08-03 1
album_artist_name_s album_release_date disc_number
track_number track_duration_ms explicit popularity isrc
<num> <num> <lgcl> <num> <char>
1: 4 143901 TRUE 85 USSM12105732
2: 1 175720 TRUE 86 USSM11904276
3: 2 196652 TRUE 85 USAT21906978
4: 1 219493 FALSE 77 USUM71210283
5: 10 290320 TRUE 91 USIR10211038
6: 9 235213 FALSE 86 USAR10300924
7: 2 257359 FALSE 77 USCA29000294
8: 8 177000 TRUE 88 USUM71703085
9: 2 177933 FALSE 81 GBAHT0600202
10: 3 226986 TRUE 76 USSM19600051
11: 1 210575 TRUE 84 USSM12208809
12: 1 248866 TRUE 78 USPR39401366
13: 8 298773 TRUE 81 USSM19600055
14: 13 213993 FALSE 77 USUM71810720
15: 3 320626 TRUE 76 USIR10211559
16: 11 205090 TRUE 82 QMFME2004132
17: 7 181733 TRUE 81 USUM72007941
18: 3 211000 FALSE 88 USUM70840511
19: 3 190476 TRUE 82 USUM72013355
20: 1 139560 TRUE 88 USUM72222387
21: 2 176960 TRUE 79 USRC12001468
22: 7 210800 TRUE 85 USUM72000788
23: 5 205040 TRUE 86 USRC11800930
24: 1 133706 TRUE 76 QMUY42100151
25: 7 204600 TRUE 85 USSM11701444
26: 3 239835 TRUE 87 USUG11800685
27: 7 248133 TRUE 83 USUM71011769
28: 4 166605 TRUE 84 USUG11800208
29: 5 270506 TRUE 85 USLF20000357
30: 3 312820 TRUE 87 USSM11806660
track_number track_duration_ms explicit popularity isrc
added_by added_at
<char> <POSc>
1: spotify:user:bradnumber1 2022-04-27 22:11:04
2: spotify:user:bradnumber1 2021-08-08 09:26:31
3: spotify:user:bradnumber1 2021-08-08 09:26:31
4: spotify:user:bradnumber1 2021-08-08 09:26:31
5: spotify:user:bradnumber1 2021-08-08 09:26:31
6: spotify:user:bradnumber1 2021-08-08 09:26:31
7: spotify:user:bradnumber1 2021-08-08 09:26:31
8: spotify:user:bradnumber1 2021-08-08 09:26:31
9: spotify:user:bradnumber1 2021-08-08 09:26:31
10: spotify:user:bradnumber1 2021-08-08 09:26:31
11: spotify:user:bradnumber1 2022-12-11 23:08:28
12: spotify:user:bradnumber1 2021-08-08 09:26:31
13: spotify:user:bradnumber1 2021-08-08 09:26:31
14: spotify:user:bradnumber1 2021-08-08 09:26:31
15: spotify:user:bradnumber1 2021-08-08 09:26:31
16: spotify:user:bradnumber1 2021-08-08 09:26:31
17: spotify:user:bradnumber1 2021-08-08 09:26:31
18: spotify:user:bradnumber1 2021-08-08 09:26:31
19: spotify:user:bradnumber1 2021-08-08 09:26:31
20: spotify:user:bradnumber1 2023-05-11 07:58:24
21: spotify:user:bradnumber1 2021-08-08 09:26:31
22: spotify:user:bradnumber1 2021-08-08 09:26:31
23: spotify:user:bradnumber1 2021-08-08 09:26:31
24: spotify:user:bradnumber1 2022-01-04 09:42:24
25: spotify:user:bradnumber1 2021-08-08 09:26:31
26: spotify:user:bradnumber1 2021-08-08 09:26:31
27: spotify:user:bradnumber1 2021-08-08 09:26:31
28: spotify:user:bradnumber1 2021-08-08 09:26:31
29: spotify:user:bradnumber1 2021-08-08 09:26:31
30: spotify:user:bradnumber1 2021-08-08 09:26:31
added_by added_at
artist_genres
<char>
1: lgbtq+ hip hop
2: hip hop,rap,slap house
3: melodic rap,rap,trap
4: k-rap,korean old school hip hop
5: detroit hip hop,hip hop,rap
6: atl hip hop,dirty south rap,hip hop,old school atlanta hip hop,rap,southern hip hop
7: hip hop
8: conscious hip hop,hip hop,rap,west coast rap
9: atl hip hop,neo soul
10: east coast hip hop,hip hop,neo soul,new jersey rap,alternative r&b,conscious hip hop,hip hop,neo soul,new jersey rap,r&b,soul,rap kreyol,new jersey rap
11: lgbtq+ hip hop
12: g funk,gangster rap,hardcore hip hop,hip hop,west coast rap,g funk,gangster rap,hardcore hip hop,hip hop,west coast rap
13: east coast hip hop,hip hop,neo soul,new jersey rap,alternative r&b,conscious hip hop,hip hop,neo soul,new jersey rap,r&b,soul
14: r&b,rap,uk contemporary r&b
15: detroit hip hop,hip hop,rap
16: reggaeton,trap latino,urbano latino,reggaeton,trap latino,urbano latino
17: hip hop,north carolina hip hop,rap,trap,melodic rap,rap,trap
18: chicago rap,hip hop,rap
19: brooklyn drill,rap,atl hip hop,atl trap,rap,trap,hip hop,north carolina hip hop,rap,trap
20: new jersey underground rap,trap queen
21: r&b,rap,atl hip hop,atl trap,gangster rap,melodic rap,rap,trap
22: detroit hip hop,hip hop,rap,chicago rap,melodic rap,rap
23: east coast hip hop,hip hop,rap,trap,birmingham grime,grime,instrumental grime,uk hip hop
24: canadian hip hop,dark trap,meme rap,indonesian hip hop
25: atl hip hop,hip hop,rap,southern hip hop,trap
26: chicago rap,melodic rap,rap
27: detroit hip hop,hip hop,rap
28: emo rap,miami hip hop
29: atl hip hop,dirty south rap,hip hop,old school atlanta hip hop,rap,southern hip hop
30: hip hop,rap,slap house
artist_genres
danceability energy key loudness mode speechiness acousticness
<num> <num> <num> <num> <num> <num> <num>
1: 0.737 0.846 1 -4.510 0 0.2200 0.006140
2: 0.598 0.427 7 -8.764 0 0.0317 0.054600
3: 0.896 0.586 10 -6.687 0 0.0559 0.104000
4: 0.727 0.937 11 -2.871 0 0.2860 0.004170
5: 0.908 0.669 7 -2.827 1 0.0738 0.002860
6: 0.727 0.974 4 -2.261 0 0.0664 0.103000
7: 0.867 0.517 11 -13.222 0 0.0875 0.004560
8: 0.908 0.621 1 -6.638 0 0.1020 0.000282
9: 0.855 0.587 8 -4.589 1 0.0336 0.050500
10: 0.607 0.422 10 -13.364 0 0.4990 0.209000
11: 0.637 0.715 2 -4.971 0 0.0455 0.148000
12: 0.849 0.521 11 -12.999 0 0.2160 0.304000
13: 0.765 0.290 4 -17.117 0 0.1390 0.027900
14: 0.477 0.610 11 -5.628 0 0.1440 0.225000
15: 0.689 0.735 2 -4.545 1 0.2670 0.009220
16: 0.731 0.573 4 -10.059 0 0.0544 0.401000
17: 0.746 0.690 11 -7.956 1 0.1640 0.247000
18: 0.790 0.647 10 -5.983 0 0.1360 0.051500
19: 0.823 0.586 6 -6.606 0 0.2000 0.114000
20: 0.954 0.516 6 -5.817 1 0.1600 0.030000
21: 0.755 0.578 0 -8.932 0 0.1450 0.316000
22: 0.808 0.745 10 -5.260 0 0.3420 0.145000
23: 0.854 0.569 5 -8.151 0 0.1060 0.060900
24: 0.815 0.848 4 -4.704 0 0.1150 0.023000
25: 0.833 0.434 2 -8.795 1 0.4310 0.010200
26: 0.511 0.566 6 -7.230 0 0.2000 0.349000
27: 0.855 0.954 0 -1.190 0 0.2640 0.529000
28: 0.740 0.613 8 -4.880 1 0.1450 0.258000
29: 0.843 0.806 4 -5.946 0 0.2690 0.143000
30: 0.834 0.730 8 -3.714 1 0.2220 0.005130
danceability energy key loudness mode speechiness acousticness
instrumentalness liveness valence tempo time_signature album_genres
<num> <num> <num> <num> <num> <lgcl>
1: 0.00e+00 0.0486 0.5460 87.981 4 NA
2: 5.83e-06 0.2100 0.0605 76.469 4 NA
3: 0.00e+00 0.7900 0.6420 116.971 4 NA
4: 0.00e+00 0.0910 0.7490 132.067 4 NA
5: 0.00e+00 0.2370 0.6620 112.238 4 NA
6: 5.32e-04 0.1740 0.9650 79.526 4 NA
7: 3.39e-04 0.0864 0.8660 133.148 4 NA
8: 5.39e-05 0.0958 0.4210 150.011 4 NA
9: 7.14e-03 0.1050 0.6400 111.970 4 NA
10: 0.00e+00 0.0839 0.5630 130.470 3 NA
11: 0.00e+00 0.0892 0.3080 141.872 4 NA
12: 1.65e-06 0.1150 0.7630 95.265 4 NA
13: 0.00e+00 0.5710 0.5060 92.409 4 NA
14: 0.00e+00 0.1070 0.3580 79.882 4 NA
15: 7.20e-04 0.3650 0.0590 171.403 4 NA
16: 5.22e-05 0.1130 0.1450 109.928 4 NA
17: 0.00e+00 0.1010 0.4970 89.977 4 NA
18: 0.00e+00 0.2480 0.6540 87.999 4 NA
19: 0.00e+00 0.1930 0.3470 125.971 4 NA
20: 7.54e-06 0.0504 0.6240 105.001 4 NA
21: 0.00e+00 0.2500 0.5810 94.148 4 NA
22: 0.00e+00 0.2920 0.8290 165.995 4 NA
23: 8.16e-02 0.1000 0.2940 80.015 4 NA
24: 1.62e-04 0.0265 0.6840 106.032 4 NA
25: 2.19e-02 0.1650 0.2810 150.062 4 NA
26: 0.00e+00 0.3400 0.2180 83.903 4 NA
27: 0.00e+00 0.2050 0.6680 114.635 5 NA
28: 3.72e-03 0.1230 0.4730 75.023 4 NA
29: 0.00e+00 0.0771 0.6130 94.948 4 NA
30: 0.00e+00 0.1240 0.4460 155.008 4 NA
instrumentalness liveness valence tempo time_signature album_genres
label
<char>
1: Columbia
2: Cactus Jack / Epic
3: Atlantic Records
4: Silent Records/Universal Republic Records
5: Aftermath
6: Arista
7: EMI/EMI Records (USA)
8: Aftermath
9: WM UK
10: Columbia
11: Columbia
12: Island Records
13: Columbia
14: 10 Summers / Interscope PS
15: 3H
16: Rimas Entertainment LLC
17: South Coast Music Group/Interscope Records
18: Roc-A-Fella
19: Victor Victor Worldwide
20: Uptown / Republic Records
21: Chris Brown Entertainment/300 Entertainment/RCA Records
22: Shady/Aftermath/Interscope Records
23: A$AP Worldwide/Polo Grounds Music/RCA Records
24: bbno$, Rich Brian appears courtesy of 88Rising
25: Epic/Freebandz/A1
26: Juice WRLD Mixtape / ISR P&D
27: Aftermath
28: Bad Vibes Forever, LLC
29: Arista/LaFace Records
30: Cactus Jack / Epic / Grand Hustle
label
copyrights
<char>
1: P (P) 2021 Columbia Records, a Division of Sony Music Entertainment
2: P (P) 2019 Epic Records. With Cactus Jack.
3: C © 2019 Atlantic Recording Corporation for the United States and WEA International Inc. for the world outside of the United States. A Warner Music Group Company, P ℗ 2019 Atlantic Recording Corporation for the United States and WEA International Inc. for the world outside of the United States. A Warner Music Group Company
4: C © 2012 Schoolboy/Universal Republic Records, a division of UMG Recordings, Inc., P ℗ 2012 Schoolboy/Universal Republic Records, a division of UMG Recordings, Inc.
5: C © 2002 Aftermath Records, P ℗ 2002 Aftermath Records
6: P (P) 2003 Arista Records LLC
7: C © 1990 Capitol Records, LLC, P ℗ 1990 Capitol Records, LLC
8: C © 2017 Aftermath/Interscope (Top Dawg Entertainment), P ℗ 2017 Aftermath/Interscope (Top Dawg Entertainment)
9: C © 2006 Gnarls Barkley under exclusive license to Warner Music UK Ltd, P ℗ 2006 Gnarls Barkley under exclusive license to Warner Music UK Ltd.
10: P (P) 1996 Columbia Records, a division of Sony Music Entertainment
11: P (P) 2022 Columbia Records, a Division of Sony Music Entertainment
12: C © 2007 The Island Def Jam Music Group, P This Compilation ℗ 2007 The Island Def Jam Music Group
13: P (P) 1996 Columbia Records, a division of Sony Music Entertainment
14: C © 2018 10 Summers Records, LLC, P ℗ 2018 10 Summers Records, LLC
15: C © 2014 Shady Records/Interscope Records, P This Compilation ℗ 2014 Shady Records/Interscope Records
16: C (C) 2020 Rimas Entertainment LLC, P (P) 2020 Rimas Entertainment LLC
17: C © 2020 Interscope Records, P ℗ 2020 Interscope Records
18: C © 2008 UMG Recordings, Inc., P ℗ 2008 UMG Recordings, Inc.
19: C © 2020 Republic Records, a division of UMG Recordings, Inc. & Victor Victor Worldwide, P ℗ 2020 Republic Records, a division of UMG Recordings, Inc. & Victor Victor Worldwide
20: C © 2022 Uptown Records, a division of Republic Records and UMG Recordings, Inc., P ℗ 2022 Uptown Records, a division of Republic Records and UMG Recordings, Inc.
21: P (P) 2020 Chris Brown Entertainment, LLC, under exclusive license to RCA Records
22: C © 2020 Marshall B. Mathers III, P ℗ 2020 Marshall B. Mathers III
23: P (P) 2018 A$AP Rocky Recordings LLC/RCA Records. Marketed & Distributed by Polo Grounds Music/RCA Records.
24: C 2021 bbno$, Rich Brian appears courtesy of 88Rising, P 2021 bbno$, Rich Brian appears courtesy of 88Rising
25: P (P) 2017 Epic Records, a division of Sony Music Entertainment with A1 / Freebandz
26: C © 2018 Grade A Productions, LLC, distributed by Interscope Records, P ℗ 2018 Grade A Productions, LLC, distributed by Interscope Records
27: C © 2010 Aftermath Records, P ℗ 2010 Aftermath Records
28: C © 2018 Bad Vibes Forever, P ℗ 2018 Bad Vibes Forever
29: P (P) 2000 Arista Records LLC
30: P (P) 2018 Epic Records/Sony. With Cactus Jack and Grand Hustle.
copyrights
main_genre duration_sec popularity_scaled is_popular loudness_energy_ratio
<char> <num> <num> <lgcl> <num>
1: Hip Hop 143.901 0.85 TRUE -5.330969
2: Hip Hop 175.720 0.86 TRUE -20.524590
3: Hip Hop 196.652 0.85 TRUE -11.411263
4: Hip Hop 219.493 0.77 TRUE -3.064034
5: Hip Hop 290.320 0.91 TRUE -4.225710
6: Hip Hop 235.213 0.86 TRUE -2.321355
7: Hip Hop 257.359 0.77 TRUE -25.574468
8: Hip Hop 177.000 0.88 TRUE -10.689211
9: Hip Hop 177.933 0.81 TRUE -7.817717
10: Hip Hop 226.986 0.76 TRUE -31.668246
11: Hip Hop 210.575 0.84 TRUE -6.952448
12: Hip Hop 248.866 0.78 TRUE -24.950096
13: Hip Hop 298.773 0.81 TRUE -59.024138
14: Hip Hop 213.993 0.77 TRUE -9.226230
15: Hip Hop 320.626 0.76 TRUE -6.183673
16: Hip Hop 205.090 0.82 TRUE -17.554974
17: Hip Hop 181.733 0.81 TRUE -11.530435
18: Hip Hop 211.000 0.88 TRUE -9.247295
19: Hip Hop 190.476 0.82 TRUE -11.273038
20: Hip Hop 139.560 0.88 TRUE -11.273256
21: Hip Hop 176.960 0.79 TRUE -15.453287
22: Hip Hop 210.800 0.85 TRUE -7.060403
23: Hip Hop 205.040 0.86 TRUE -14.325132
24: Hip Hop 133.706 0.76 TRUE -5.547170
25: Hip Hop 204.600 0.85 TRUE -20.264977
26: Hip Hop 239.835 0.87 TRUE -12.773852
27: Hip Hop 248.133 0.83 TRUE -1.247379
28: Hip Hop 166.605 0.84 TRUE -7.960848
29: Hip Hop 270.506 0.85 TRUE -7.377171
30: Hip Hop 312.820 0.87 TRUE -5.087671
main_genre duration_sec popularity_scaled is_popular loudness_energy_ratio
release_date release_year release_month release_day efficiency_ratio
<Date> <num> <num> <int> <num>
1: 2021-09-17 2021 9 17 1.1478969
2: 2019-10-04 2019 10 4 0.7140468
3: 2019-12-06 2019 12 6 0.6540179
4: 2012-01-01 2012 1 1 1.2888583
5: 2002-05-26 2002 5 26 0.7367841
6: <NA> NA NA NA 1.3397524
7: 1990-02-20 1990 2 20 0.5963091
8: 2017-04-14 2017 4 14 0.6839207
9: 2006-04-24 2006 4 24 0.6865497
10: 1996-02-13 1996 2 13 0.6952224
11: 2022-09-22 2022 9 22 1.1224490
12: 1994-06-07 1994 6 7 0.6136631
13: 1996-02-13 1996 2 13 0.3790850
14: 2018-10-12 2018 10 12 1.2788260
15: 2014-11-24 2014 11 24 1.0667634
16: 2020-11-27 2020 11 27 0.7838577
17: 2020-04-17 2020 4 17 0.9249330
18: 2008-11-24 2008 11 24 0.8189873
19: 2020-07-03 2020 7 3 0.7120292
20: 2022-11-30 2022 11 30 0.5408805
21: 2020-05-08 2020 5 8 0.7655629
22: 2020-01-17 2020 1 17 0.9220297
23: 2018-05-25 2018 5 25 0.6662763
24: 2021-07-24 2021 7 24 1.0404908
25: 2017-06-30 2017 6 30 0.5210084
26: 2018-12-10 2018 12 10 1.1076321
27: 2010-06-18 2010 6 18 1.1157895
28: 2018-03-16 2018 3 16 0.8283784
29: 2000-10-31 2000 10 31 0.9561091
30: 2018-08-03 2018 8 3 0.8752998
release_date release_year release_month release_day efficiency_ratio
# dplyr operation to filter top tracks
dt_top_tracks_dplyr <- spotify_dt %>% filter (popularity > 75 & main_genre == "Hip Hop" )
dt_top_tracks_dplyr
Key: <main_genre>
track_name
<char>
1: THATS WHAT I WANT
2: HIGHEST IN THE ROOM
3: The Box
4: Gangnam Style (강남스타일)
5: Without Me
6: Hey Ya!
7: U Can't Touch This
8: HUMBLE.
9: Crazy
10: Ready or Not
11: STAR WALKIN' (League of Legends Worlds Anthem)
12: Regulate
13: Killing Me Softly With His Song
14: Trip
15: Lose Yourself
16: DÁKITI
17: ROCKSTAR (feat. Roddy Ricch)
18: Heartless
19: For The Night (feat. Lil Baby & DaBaby)
20: Players
21: Go Crazy
22: Godzilla (feat. Juice WRLD)
23: Praise The Lord (Da Shine) (feat. Skepta)
24: edamame (feat. Rich Brian)
25: Mask Off
26: Lucid Dreams
27: Not Afraid
28: SAD!
29: Ms. Jackson
30: SICKO MODE
track_name
artist_name_s
<char>
1: Lil Nas X
2: Travis Scott
3: Roddy Ricch
4: PSY
5: Eminem
6: Outkast
7: MC Hammer
8: Kendrick Lamar
9: Gnarls Barkley
10: Fugees, Ms. Lauryn Hill, Wyclef Jean, Pras
11: Lil Nas X
12: Warren G, Nate Dogg
13: Fugees, Ms. Lauryn Hill
14: Ella Mai
15: Eminem
16: Bad Bunny, Jhayco
17: DaBaby, Roddy Ricch
18: Kanye West
19: Pop Smoke, Lil Baby, DaBaby
20: Coi Leray
21: Chris Brown, Young Thug
22: Eminem, Juice WRLD
23: A$AP Rocky, Skepta
24: bbno$, Rich Brian
25: Future
26: Juice WRLD
27: Eminem
28: XXXTENTACION
29: Outkast
30: Travis Scott
artist_name_s
album_name
<char>
1: MONTERO
2: HIGHEST IN THE ROOM
3: Please Excuse Me for Being Antisocial
4: Gangnam Style (강남스타일)
5: The Eminem Show
6: Speakerboxxx/The Love Below
7: Please Hammer Don't Hurt 'Em
8: DAMN.
9: St. Elsewhere
10: The Score (Expanded Edition)
11: STAR WALKIN' (League of Legends Worlds Anthem)
12: Regulate… G Funk Era
13: The Score (Expanded Edition)
14: Ella Mai
15: SHADYXV
16: EL ÚLTIMO TOUR DEL MUNDO
17: BLAME IT ON BABY
18: 808s & Heartbreak
19: Shoot For The Stars Aim For The Moon
20: Players
21: Slime & B
22: Music To Be Murdered By
23: TESTING
24: edamame (feat. Rich Brian)
25: FUTURE
26: Goodbye & Good Riddance
27: Recovery
28: ?
29: Stankonia
30: ASTROWORLD
album_name
album_artist_name_s album_release_date disc_number
<char> <char> <num>
1: Lil Nas X 2021-09-17 1
2: Travis Scott 2019-10-04 1
3: Roddy Ricch 2019-12-06 1
4: PSY 2012-01-01 1
5: Eminem 2002-05-26 1
6: Outkast 2003 2
7: MC Hammer 1990-02-20 1
8: Kendrick Lamar 2017-04-14 1
9: Gnarls Barkley 2006-04-24 1
10: Fugees, Ms. Lauryn Hill, Wyclef Jean 1996-02-13 1
11: Lil Nas X 2022-09-22 1
12: Warren G 1994-06-07 1
13: Fugees, Ms. Lauryn Hill, Wyclef Jean 1996-02-13 1
14: Ella Mai 2018-10-12 1
15: Various Artists 2014-11-24 2
16: Bad Bunny 2020-11-27 1
17: DaBaby 2020-04-17 1
18: Kanye West 2008-11-24 1
19: Pop Smoke 2020-07-03 1
20: Coi Leray 2022-11-30 1
21: Chris Brown, Young Thug 2020-05-08 1
22: Eminem 2020-01-17 1
23: A$AP Rocky 2018-05-25 1
24: bbno$, Rich Brian 2021-07-24 1
25: Future 2017-06-30 1
26: Juice WRLD 2018-12-10 1
27: Eminem 2010-06-18 1
28: XXXTENTACION 2018-03-16 1
29: Outkast 2000-10-31 1
30: Travis Scott 2018-08-03 1
album_artist_name_s album_release_date disc_number
track_number track_duration_ms explicit popularity isrc
<num> <num> <lgcl> <num> <char>
1: 4 143901 TRUE 85 USSM12105732
2: 1 175720 TRUE 86 USSM11904276
3: 2 196652 TRUE 85 USAT21906978
4: 1 219493 FALSE 77 USUM71210283
5: 10 290320 TRUE 91 USIR10211038
6: 9 235213 FALSE 86 USAR10300924
7: 2 257359 FALSE 77 USCA29000294
8: 8 177000 TRUE 88 USUM71703085
9: 2 177933 FALSE 81 GBAHT0600202
10: 3 226986 TRUE 76 USSM19600051
11: 1 210575 TRUE 84 USSM12208809
12: 1 248866 TRUE 78 USPR39401366
13: 8 298773 TRUE 81 USSM19600055
14: 13 213993 FALSE 77 USUM71810720
15: 3 320626 TRUE 76 USIR10211559
16: 11 205090 TRUE 82 QMFME2004132
17: 7 181733 TRUE 81 USUM72007941
18: 3 211000 FALSE 88 USUM70840511
19: 3 190476 TRUE 82 USUM72013355
20: 1 139560 TRUE 88 USUM72222387
21: 2 176960 TRUE 79 USRC12001468
22: 7 210800 TRUE 85 USUM72000788
23: 5 205040 TRUE 86 USRC11800930
24: 1 133706 TRUE 76 QMUY42100151
25: 7 204600 TRUE 85 USSM11701444
26: 3 239835 TRUE 87 USUG11800685
27: 7 248133 TRUE 83 USUM71011769
28: 4 166605 TRUE 84 USUG11800208
29: 5 270506 TRUE 85 USLF20000357
30: 3 312820 TRUE 87 USSM11806660
track_number track_duration_ms explicit popularity isrc
added_by added_at
<char> <POSc>
1: spotify:user:bradnumber1 2022-04-27 22:11:04
2: spotify:user:bradnumber1 2021-08-08 09:26:31
3: spotify:user:bradnumber1 2021-08-08 09:26:31
4: spotify:user:bradnumber1 2021-08-08 09:26:31
5: spotify:user:bradnumber1 2021-08-08 09:26:31
6: spotify:user:bradnumber1 2021-08-08 09:26:31
7: spotify:user:bradnumber1 2021-08-08 09:26:31
8: spotify:user:bradnumber1 2021-08-08 09:26:31
9: spotify:user:bradnumber1 2021-08-08 09:26:31
10: spotify:user:bradnumber1 2021-08-08 09:26:31
11: spotify:user:bradnumber1 2022-12-11 23:08:28
12: spotify:user:bradnumber1 2021-08-08 09:26:31
13: spotify:user:bradnumber1 2021-08-08 09:26:31
14: spotify:user:bradnumber1 2021-08-08 09:26:31
15: spotify:user:bradnumber1 2021-08-08 09:26:31
16: spotify:user:bradnumber1 2021-08-08 09:26:31
17: spotify:user:bradnumber1 2021-08-08 09:26:31
18: spotify:user:bradnumber1 2021-08-08 09:26:31
19: spotify:user:bradnumber1 2021-08-08 09:26:31
20: spotify:user:bradnumber1 2023-05-11 07:58:24
21: spotify:user:bradnumber1 2021-08-08 09:26:31
22: spotify:user:bradnumber1 2021-08-08 09:26:31
23: spotify:user:bradnumber1 2021-08-08 09:26:31
24: spotify:user:bradnumber1 2022-01-04 09:42:24
25: spotify:user:bradnumber1 2021-08-08 09:26:31
26: spotify:user:bradnumber1 2021-08-08 09:26:31
27: spotify:user:bradnumber1 2021-08-08 09:26:31
28: spotify:user:bradnumber1 2021-08-08 09:26:31
29: spotify:user:bradnumber1 2021-08-08 09:26:31
30: spotify:user:bradnumber1 2021-08-08 09:26:31
added_by added_at
artist_genres
<char>
1: lgbtq+ hip hop
2: hip hop,rap,slap house
3: melodic rap,rap,trap
4: k-rap,korean old school hip hop
5: detroit hip hop,hip hop,rap
6: atl hip hop,dirty south rap,hip hop,old school atlanta hip hop,rap,southern hip hop
7: hip hop
8: conscious hip hop,hip hop,rap,west coast rap
9: atl hip hop,neo soul
10: east coast hip hop,hip hop,neo soul,new jersey rap,alternative r&b,conscious hip hop,hip hop,neo soul,new jersey rap,r&b,soul,rap kreyol,new jersey rap
11: lgbtq+ hip hop
12: g funk,gangster rap,hardcore hip hop,hip hop,west coast rap,g funk,gangster rap,hardcore hip hop,hip hop,west coast rap
13: east coast hip hop,hip hop,neo soul,new jersey rap,alternative r&b,conscious hip hop,hip hop,neo soul,new jersey rap,r&b,soul
14: r&b,rap,uk contemporary r&b
15: detroit hip hop,hip hop,rap
16: reggaeton,trap latino,urbano latino,reggaeton,trap latino,urbano latino
17: hip hop,north carolina hip hop,rap,trap,melodic rap,rap,trap
18: chicago rap,hip hop,rap
19: brooklyn drill,rap,atl hip hop,atl trap,rap,trap,hip hop,north carolina hip hop,rap,trap
20: new jersey underground rap,trap queen
21: r&b,rap,atl hip hop,atl trap,gangster rap,melodic rap,rap,trap
22: detroit hip hop,hip hop,rap,chicago rap,melodic rap,rap
23: east coast hip hop,hip hop,rap,trap,birmingham grime,grime,instrumental grime,uk hip hop
24: canadian hip hop,dark trap,meme rap,indonesian hip hop
25: atl hip hop,hip hop,rap,southern hip hop,trap
26: chicago rap,melodic rap,rap
27: detroit hip hop,hip hop,rap
28: emo rap,miami hip hop
29: atl hip hop,dirty south rap,hip hop,old school atlanta hip hop,rap,southern hip hop
30: hip hop,rap,slap house
artist_genres
danceability energy key loudness mode speechiness acousticness
<num> <num> <num> <num> <num> <num> <num>
1: 0.737 0.846 1 -4.510 0 0.2200 0.006140
2: 0.598 0.427 7 -8.764 0 0.0317 0.054600
3: 0.896 0.586 10 -6.687 0 0.0559 0.104000
4: 0.727 0.937 11 -2.871 0 0.2860 0.004170
5: 0.908 0.669 7 -2.827 1 0.0738 0.002860
6: 0.727 0.974 4 -2.261 0 0.0664 0.103000
7: 0.867 0.517 11 -13.222 0 0.0875 0.004560
8: 0.908 0.621 1 -6.638 0 0.1020 0.000282
9: 0.855 0.587 8 -4.589 1 0.0336 0.050500
10: 0.607 0.422 10 -13.364 0 0.4990 0.209000
11: 0.637 0.715 2 -4.971 0 0.0455 0.148000
12: 0.849 0.521 11 -12.999 0 0.2160 0.304000
13: 0.765 0.290 4 -17.117 0 0.1390 0.027900
14: 0.477 0.610 11 -5.628 0 0.1440 0.225000
15: 0.689 0.735 2 -4.545 1 0.2670 0.009220
16: 0.731 0.573 4 -10.059 0 0.0544 0.401000
17: 0.746 0.690 11 -7.956 1 0.1640 0.247000
18: 0.790 0.647 10 -5.983 0 0.1360 0.051500
19: 0.823 0.586 6 -6.606 0 0.2000 0.114000
20: 0.954 0.516 6 -5.817 1 0.1600 0.030000
21: 0.755 0.578 0 -8.932 0 0.1450 0.316000
22: 0.808 0.745 10 -5.260 0 0.3420 0.145000
23: 0.854 0.569 5 -8.151 0 0.1060 0.060900
24: 0.815 0.848 4 -4.704 0 0.1150 0.023000
25: 0.833 0.434 2 -8.795 1 0.4310 0.010200
26: 0.511 0.566 6 -7.230 0 0.2000 0.349000
27: 0.855 0.954 0 -1.190 0 0.2640 0.529000
28: 0.740 0.613 8 -4.880 1 0.1450 0.258000
29: 0.843 0.806 4 -5.946 0 0.2690 0.143000
30: 0.834 0.730 8 -3.714 1 0.2220 0.005130
danceability energy key loudness mode speechiness acousticness
instrumentalness liveness valence tempo time_signature album_genres
<num> <num> <num> <num> <num> <lgcl>
1: 0.00e+00 0.0486 0.5460 87.981 4 NA
2: 5.83e-06 0.2100 0.0605 76.469 4 NA
3: 0.00e+00 0.7900 0.6420 116.971 4 NA
4: 0.00e+00 0.0910 0.7490 132.067 4 NA
5: 0.00e+00 0.2370 0.6620 112.238 4 NA
6: 5.32e-04 0.1740 0.9650 79.526 4 NA
7: 3.39e-04 0.0864 0.8660 133.148 4 NA
8: 5.39e-05 0.0958 0.4210 150.011 4 NA
9: 7.14e-03 0.1050 0.6400 111.970 4 NA
10: 0.00e+00 0.0839 0.5630 130.470 3 NA
11: 0.00e+00 0.0892 0.3080 141.872 4 NA
12: 1.65e-06 0.1150 0.7630 95.265 4 NA
13: 0.00e+00 0.5710 0.5060 92.409 4 NA
14: 0.00e+00 0.1070 0.3580 79.882 4 NA
15: 7.20e-04 0.3650 0.0590 171.403 4 NA
16: 5.22e-05 0.1130 0.1450 109.928 4 NA
17: 0.00e+00 0.1010 0.4970 89.977 4 NA
18: 0.00e+00 0.2480 0.6540 87.999 4 NA
19: 0.00e+00 0.1930 0.3470 125.971 4 NA
20: 7.54e-06 0.0504 0.6240 105.001 4 NA
21: 0.00e+00 0.2500 0.5810 94.148 4 NA
22: 0.00e+00 0.2920 0.8290 165.995 4 NA
23: 8.16e-02 0.1000 0.2940 80.015 4 NA
24: 1.62e-04 0.0265 0.6840 106.032 4 NA
25: 2.19e-02 0.1650 0.2810 150.062 4 NA
26: 0.00e+00 0.3400 0.2180 83.903 4 NA
27: 0.00e+00 0.2050 0.6680 114.635 5 NA
28: 3.72e-03 0.1230 0.4730 75.023 4 NA
29: 0.00e+00 0.0771 0.6130 94.948 4 NA
30: 0.00e+00 0.1240 0.4460 155.008 4 NA
instrumentalness liveness valence tempo time_signature album_genres
label
<char>
1: Columbia
2: Cactus Jack / Epic
3: Atlantic Records
4: Silent Records/Universal Republic Records
5: Aftermath
6: Arista
7: EMI/EMI Records (USA)
8: Aftermath
9: WM UK
10: Columbia
11: Columbia
12: Island Records
13: Columbia
14: 10 Summers / Interscope PS
15: 3H
16: Rimas Entertainment LLC
17: South Coast Music Group/Interscope Records
18: Roc-A-Fella
19: Victor Victor Worldwide
20: Uptown / Republic Records
21: Chris Brown Entertainment/300 Entertainment/RCA Records
22: Shady/Aftermath/Interscope Records
23: A$AP Worldwide/Polo Grounds Music/RCA Records
24: bbno$, Rich Brian appears courtesy of 88Rising
25: Epic/Freebandz/A1
26: Juice WRLD Mixtape / ISR P&D
27: Aftermath
28: Bad Vibes Forever, LLC
29: Arista/LaFace Records
30: Cactus Jack / Epic / Grand Hustle
label
copyrights
<char>
1: P (P) 2021 Columbia Records, a Division of Sony Music Entertainment
2: P (P) 2019 Epic Records. With Cactus Jack.
3: C © 2019 Atlantic Recording Corporation for the United States and WEA International Inc. for the world outside of the United States. A Warner Music Group Company, P ℗ 2019 Atlantic Recording Corporation for the United States and WEA International Inc. for the world outside of the United States. A Warner Music Group Company
4: C © 2012 Schoolboy/Universal Republic Records, a division of UMG Recordings, Inc., P ℗ 2012 Schoolboy/Universal Republic Records, a division of UMG Recordings, Inc.
5: C © 2002 Aftermath Records, P ℗ 2002 Aftermath Records
6: P (P) 2003 Arista Records LLC
7: C © 1990 Capitol Records, LLC, P ℗ 1990 Capitol Records, LLC
8: C © 2017 Aftermath/Interscope (Top Dawg Entertainment), P ℗ 2017 Aftermath/Interscope (Top Dawg Entertainment)
9: C © 2006 Gnarls Barkley under exclusive license to Warner Music UK Ltd, P ℗ 2006 Gnarls Barkley under exclusive license to Warner Music UK Ltd.
10: P (P) 1996 Columbia Records, a division of Sony Music Entertainment
11: P (P) 2022 Columbia Records, a Division of Sony Music Entertainment
12: C © 2007 The Island Def Jam Music Group, P This Compilation ℗ 2007 The Island Def Jam Music Group
13: P (P) 1996 Columbia Records, a division of Sony Music Entertainment
14: C © 2018 10 Summers Records, LLC, P ℗ 2018 10 Summers Records, LLC
15: C © 2014 Shady Records/Interscope Records, P This Compilation ℗ 2014 Shady Records/Interscope Records
16: C (C) 2020 Rimas Entertainment LLC, P (P) 2020 Rimas Entertainment LLC
17: C © 2020 Interscope Records, P ℗ 2020 Interscope Records
18: C © 2008 UMG Recordings, Inc., P ℗ 2008 UMG Recordings, Inc.
19: C © 2020 Republic Records, a division of UMG Recordings, Inc. & Victor Victor Worldwide, P ℗ 2020 Republic Records, a division of UMG Recordings, Inc. & Victor Victor Worldwide
20: C © 2022 Uptown Records, a division of Republic Records and UMG Recordings, Inc., P ℗ 2022 Uptown Records, a division of Republic Records and UMG Recordings, Inc.
21: P (P) 2020 Chris Brown Entertainment, LLC, under exclusive license to RCA Records
22: C © 2020 Marshall B. Mathers III, P ℗ 2020 Marshall B. Mathers III
23: P (P) 2018 A$AP Rocky Recordings LLC/RCA Records. Marketed & Distributed by Polo Grounds Music/RCA Records.
24: C 2021 bbno$, Rich Brian appears courtesy of 88Rising, P 2021 bbno$, Rich Brian appears courtesy of 88Rising
25: P (P) 2017 Epic Records, a division of Sony Music Entertainment with A1 / Freebandz
26: C © 2018 Grade A Productions, LLC, distributed by Interscope Records, P ℗ 2018 Grade A Productions, LLC, distributed by Interscope Records
27: C © 2010 Aftermath Records, P ℗ 2010 Aftermath Records
28: C © 2018 Bad Vibes Forever, P ℗ 2018 Bad Vibes Forever
29: P (P) 2000 Arista Records LLC
30: P (P) 2018 Epic Records/Sony. With Cactus Jack and Grand Hustle.
copyrights
main_genre duration_sec popularity_scaled is_popular loudness_energy_ratio
<char> <num> <num> <lgcl> <num>
1: Hip Hop 143.901 0.85 TRUE -5.330969
2: Hip Hop 175.720 0.86 TRUE -20.524590
3: Hip Hop 196.652 0.85 TRUE -11.411263
4: Hip Hop 219.493 0.77 TRUE -3.064034
5: Hip Hop 290.320 0.91 TRUE -4.225710
6: Hip Hop 235.213 0.86 TRUE -2.321355
7: Hip Hop 257.359 0.77 TRUE -25.574468
8: Hip Hop 177.000 0.88 TRUE -10.689211
9: Hip Hop 177.933 0.81 TRUE -7.817717
10: Hip Hop 226.986 0.76 TRUE -31.668246
11: Hip Hop 210.575 0.84 TRUE -6.952448
12: Hip Hop 248.866 0.78 TRUE -24.950096
13: Hip Hop 298.773 0.81 TRUE -59.024138
14: Hip Hop 213.993 0.77 TRUE -9.226230
15: Hip Hop 320.626 0.76 TRUE -6.183673
16: Hip Hop 205.090 0.82 TRUE -17.554974
17: Hip Hop 181.733 0.81 TRUE -11.530435
18: Hip Hop 211.000 0.88 TRUE -9.247295
19: Hip Hop 190.476 0.82 TRUE -11.273038
20: Hip Hop 139.560 0.88 TRUE -11.273256
21: Hip Hop 176.960 0.79 TRUE -15.453287
22: Hip Hop 210.800 0.85 TRUE -7.060403
23: Hip Hop 205.040 0.86 TRUE -14.325132
24: Hip Hop 133.706 0.76 TRUE -5.547170
25: Hip Hop 204.600 0.85 TRUE -20.264977
26: Hip Hop 239.835 0.87 TRUE -12.773852
27: Hip Hop 248.133 0.83 TRUE -1.247379
28: Hip Hop 166.605 0.84 TRUE -7.960848
29: Hip Hop 270.506 0.85 TRUE -7.377171
30: Hip Hop 312.820 0.87 TRUE -5.087671
main_genre duration_sec popularity_scaled is_popular loudness_energy_ratio
release_date release_year release_month release_day efficiency_ratio
<Date> <num> <num> <int> <num>
1: 2021-09-17 2021 9 17 1.1478969
2: 2019-10-04 2019 10 4 0.7140468
3: 2019-12-06 2019 12 6 0.6540179
4: 2012-01-01 2012 1 1 1.2888583
5: 2002-05-26 2002 5 26 0.7367841
6: <NA> NA NA NA 1.3397524
7: 1990-02-20 1990 2 20 0.5963091
8: 2017-04-14 2017 4 14 0.6839207
9: 2006-04-24 2006 4 24 0.6865497
10: 1996-02-13 1996 2 13 0.6952224
11: 2022-09-22 2022 9 22 1.1224490
12: 1994-06-07 1994 6 7 0.6136631
13: 1996-02-13 1996 2 13 0.3790850
14: 2018-10-12 2018 10 12 1.2788260
15: 2014-11-24 2014 11 24 1.0667634
16: 2020-11-27 2020 11 27 0.7838577
17: 2020-04-17 2020 4 17 0.9249330
18: 2008-11-24 2008 11 24 0.8189873
19: 2020-07-03 2020 7 3 0.7120292
20: 2022-11-30 2022 11 30 0.5408805
21: 2020-05-08 2020 5 8 0.7655629
22: 2020-01-17 2020 1 17 0.9220297
23: 2018-05-25 2018 5 25 0.6662763
24: 2021-07-24 2021 7 24 1.0404908
25: 2017-06-30 2017 6 30 0.5210084
26: 2018-12-10 2018 12 10 1.1076321
27: 2010-06-18 2010 6 18 1.1157895
28: 2018-03-16 2018 3 16 0.8283784
29: 2000-10-31 2000 10 31 0.9561091
30: 2018-08-03 2018 8 3 0.8752998
release_date release_year release_month release_day efficiency_ratio
Here I wanted to analyze the ratio between the tempo and the energy to understand the relationship between those two musical characteristics which could help figure out which songs have higher ratios and whether there was a correlation between the two.
# Creating a new column measuring the tempo to energy ratio
spotify_dt[, tempo_energy_ratio : = tempo / energy]
spotify_dt
Key: <main_genre>
track_name
<char>
1: Dance Wiv Me
2: The Good, the Bad and the Ugly - From "The Good, the Bad and the Ugly"
3: Sandy
4: The Stripper
5: Justified & Ancient - Stand by the Jams
---
9995: Blowin' in the Wind
9996: She's My Baby
9997: Yellow Submarine - Remastered 2009
9998: When You Were Young
9999: Prisoner of Society
artist_name_s
<char>
1: Dizzee Rascal
2: Hugo Montenegro & His Orchestra, Hugo Montenegro
3: Larry Hall
4: David Rose & His Orchestra
5: The KLF
---
9995: Bob Dylan
9996: Johnny O'Keefe
9997: The Beatles
9998: The Killers
9999: The Living End
album_name album_artist_name_s
<char> <char>
1: Tongue N' Cheek Dizzee Rascal
2: All-Time Greatest Movie Themes & Schemes Hugo Montenegro & His Orchestra
3: Totally Cool '60s: Lost Hits & Misses Various Artists
4: Music Of The Stripper David Rose & His Orchestra
5: Songs Collection The KLF
---
9995: The Freewheelin' Bob Dylan Bob Dylan
9996: The Very Best Of (Standard) Johnny O'Keefe
9997: Revolver (Remastered) The Beatles
9998: Sam's Town The Killers
9999: The Living End The Living End
album_release_date disc_number track_number track_duration_ms explicit
<char> <num> <num> <num> <lgcl>
1: 2009-09-25 1 3 204093 TRUE
2: 1999-08-24 1 15 165693 FALSE
3: 2016-12-02 1 9 150680 FALSE
4: 2006-01-01 1 1 117640 FALSE
5: 1992-08-03 1 3 216270 FALSE
---
9995: 1963-05-27 1 1 165426 FALSE
9996: 2008-08-23 1 4 125226 FALSE
9997: 1966-08-05 1 6 158880 FALSE
9998: 2006-10-03 1 3 220426 FALSE
9999: 1999-01-15 1 1 229066 FALSE
popularity isrc added_by added_at
<num> <char> <char> <POSc>
1: 0 GBWHS0800003 spotify:user:bradnumber1 2021-08-08 09:26:31
2: 37 USRC16707524 spotify:user:bradnumber1 2021-08-08 09:26:31
3: 0 USBT21603678 spotify:user:bradnumber1 2021-08-08 09:26:31
4: 22 ADA010903901 spotify:user:bradnumber1 2021-08-08 09:26:31
5: 0 QMARG1760056 spotify:user:bradnumber1 2020-03-05 09:20:39
---
9995: 71 USSM19900534 spotify:user:bradnumber1 2021-08-08 09:26:31
9996: 16 AUWA00800460 spotify:user:bradnumber1 2021-08-08 09:26:31
9997: 61 GBAYE0601498 spotify:user:bradnumber1 2021-08-08 09:26:31
9998: 1 USUM70605164 spotify:user:bradnumber1 2021-08-08 09:26:31
9999: 47 AUMPO9800004 spotify:user:bradnumber1 2021-08-08 09:26:31
artist_genres
<char>
1: grime,instrumental grime
2: easy listening,man's orchestra,easy listening
3: instrumental worship
4: light music,man's orchestra
5: acid house,ambient house,big beat,hip house
---
9995: classic rock,country rock,folk,folk rock,rock,roots rock,singer-songwriter
9996: australian rock
9997: beatlesque,british invasion,classic rock,merseybeat,psychedelic rock,rock
9998: alternative rock,dance rock,modern rock,permanent wave,rock
9999: australian alternative rock,australian rock,australian ska
danceability energy key loudness mode speechiness acousticness
<num> <num> <num> <num> <num> <num> <num>
1: 0.878 0.7460 11 -4.281 1 0.0451 0.047600
2: 0.531 0.6480 0 -10.648 1 0.0412 0.649000
3: 0.359 0.4140 0 -11.949 1 0.0339 0.636000
4: 0.464 0.4200 5 -12.649 1 0.0280 0.843000
5: 0.617 0.8720 8 -12.305 1 0.0480 0.015800
---
9995: 0.380 0.0993 2 -20.567 1 0.0509 0.914000
9996: 0.582 0.7720 2 -5.028 1 0.0332 0.691000
9997: 0.604 0.5490 1 -9.873 1 0.0389 0.531000
9998: 0.467 0.9880 11 -3.313 1 0.1120 0.000152
9999: 0.275 0.9930 9 -5.474 0 0.1380 0.000186
instrumentalness liveness valence tempo time_signature album_genres
<num> <num> <num> <num> <num> <lgcl>
1: 0.00e+00 0.1540 0.792 111.996 4 NA
2: 5.01e-01 0.4420 0.589 116.572 4 NA
3: 1.08e-03 0.3670 0.628 158.741 4 NA
4: 9.73e-01 0.2620 0.591 94.570 4 NA
5: 1.12e-01 0.4080 0.504 111.458 4 NA
---
9995: 2.32e-05 0.0605 0.440 174.874 4 NA
9996: 1.75e-04 0.1240 0.731 131.613 4 NA
9997: 0.00e+00 0.4380 0.696 111.398 4 NA
9998: 4.84e-02 0.2800 0.321 130.435 4 NA
9999: 0.00e+00 0.3020 0.190 148.725 4 NA
label
<char>
1: Liberator Music
2: RCA Records Label
3: Record Town
4: Gambit Records
5: Jams Communications
---
9995: Columbia
9996: WM Australia
9997: EMI Catalogue
9998: Universal Music Group
9999: Reprise
copyrights
<char>
1: C 2009 Dirtee Stank, P 2009 Dirtee Stank
2: P (P) 1999 BMG Entertainment
3: C 2016 Sunset Blvd., P 2016 Copyright Control
4: C 2006 Gambit Records
5: C 1992 Copyright Control, P 1992 Jams Communications
---
9995: P Originally Released 1963 Sony Music Entertainment Inc.
9996: C © 2008 Warner Music Australia Pty Limited, P ℗ 2008 Warner Music Australia Pty Limited
9997: C © 2015 Apple Corps Ltd., P ℗ 2015 Calderstone Productions Limited (a division of Universal Music Group)
9998: C © 2006 The Island Def Jam Music Group, P ℗ 2006 The Island Def Jam Music Group
9999: C © 1999 Reprise Records, P ℗ 1998, 1999 Reprise Records
main_genre duration_sec popularity_scaled is_popular
<char> <num> <num> <lgcl>
1: Classical/Instrumental 204.093 0.00 FALSE
2: Classical/Instrumental 165.693 0.37 FALSE
3: Classical/Instrumental 150.680 0.00 FALSE
4: Classical/Instrumental 117.640 0.22 FALSE
5: Dance/Electronic 216.270 0.00 FALSE
---
9995: Rock 165.426 0.71 FALSE
9996: Rock 125.226 0.16 FALSE
9997: Rock 158.880 0.61 FALSE
9998: Rock 220.426 0.01 FALSE
9999: Rock 229.066 0.47 FALSE
loudness_energy_ratio release_date release_year release_month release_day
<num> <Date> <num> <num> <int>
1: -5.738606 2009-09-25 2009 9 25
2: -16.432099 1999-08-24 1999 8 24
3: -28.862319 2016-12-02 2016 12 2
4: -30.116667 2006-01-01 2006 1 1
5: -14.111239 1992-08-03 1992 8 3
---
9995: -207.119839 1963-05-27 1963 5 27
9996: -6.512953 2008-08-23 2008 8 23
9997: -17.983607 1966-08-05 1966 8 5
9998: -3.353239 2006-10-03 2006 10 3
9999: -5.512588 1999-01-15 1999 1 15
efficiency_ratio tempo_energy_ratio
<num> <num>
1: 0.8496583 150.1287
2: 1.2203390 179.8951
3: 1.1532033 383.4324
4: 0.9051724 225.1667
5: 1.4132901 127.8188
---
9995: 0.2613158 1761.0675
9996: 1.3264605 170.4832
9997: 0.9089404 202.9107
9998: 2.1156317 132.0192
9999: 3.6109091 149.7734
# dplyr operation for tempo to energy ratio
spotify_dt_newcol <- spotify_dt %>% mutate (tempo_energy_ratio = tempo / energy)
spotify_dt_newcol
Key: <main_genre>
track_name
<char>
1: Dance Wiv Me
2: The Good, the Bad and the Ugly - From "The Good, the Bad and the Ugly"
3: Sandy
4: The Stripper
5: Justified & Ancient - Stand by the Jams
---
9995: Blowin' in the Wind
9996: She's My Baby
9997: Yellow Submarine - Remastered 2009
9998: When You Were Young
9999: Prisoner of Society
artist_name_s
<char>
1: Dizzee Rascal
2: Hugo Montenegro & His Orchestra, Hugo Montenegro
3: Larry Hall
4: David Rose & His Orchestra
5: The KLF
---
9995: Bob Dylan
9996: Johnny O'Keefe
9997: The Beatles
9998: The Killers
9999: The Living End
album_name album_artist_name_s
<char> <char>
1: Tongue N' Cheek Dizzee Rascal
2: All-Time Greatest Movie Themes & Schemes Hugo Montenegro & His Orchestra
3: Totally Cool '60s: Lost Hits & Misses Various Artists
4: Music Of The Stripper David Rose & His Orchestra
5: Songs Collection The KLF
---
9995: The Freewheelin' Bob Dylan Bob Dylan
9996: The Very Best Of (Standard) Johnny O'Keefe
9997: Revolver (Remastered) The Beatles
9998: Sam's Town The Killers
9999: The Living End The Living End
album_release_date disc_number track_number track_duration_ms explicit
<char> <num> <num> <num> <lgcl>
1: 2009-09-25 1 3 204093 TRUE
2: 1999-08-24 1 15 165693 FALSE
3: 2016-12-02 1 9 150680 FALSE
4: 2006-01-01 1 1 117640 FALSE
5: 1992-08-03 1 3 216270 FALSE
---
9995: 1963-05-27 1 1 165426 FALSE
9996: 2008-08-23 1 4 125226 FALSE
9997: 1966-08-05 1 6 158880 FALSE
9998: 2006-10-03 1 3 220426 FALSE
9999: 1999-01-15 1 1 229066 FALSE
popularity isrc added_by added_at
<num> <char> <char> <POSc>
1: 0 GBWHS0800003 spotify:user:bradnumber1 2021-08-08 09:26:31
2: 37 USRC16707524 spotify:user:bradnumber1 2021-08-08 09:26:31
3: 0 USBT21603678 spotify:user:bradnumber1 2021-08-08 09:26:31
4: 22 ADA010903901 spotify:user:bradnumber1 2021-08-08 09:26:31
5: 0 QMARG1760056 spotify:user:bradnumber1 2020-03-05 09:20:39
---
9995: 71 USSM19900534 spotify:user:bradnumber1 2021-08-08 09:26:31
9996: 16 AUWA00800460 spotify:user:bradnumber1 2021-08-08 09:26:31
9997: 61 GBAYE0601498 spotify:user:bradnumber1 2021-08-08 09:26:31
9998: 1 USUM70605164 spotify:user:bradnumber1 2021-08-08 09:26:31
9999: 47 AUMPO9800004 spotify:user:bradnumber1 2021-08-08 09:26:31
artist_genres
<char>
1: grime,instrumental grime
2: easy listening,man's orchestra,easy listening
3: instrumental worship
4: light music,man's orchestra
5: acid house,ambient house,big beat,hip house
---
9995: classic rock,country rock,folk,folk rock,rock,roots rock,singer-songwriter
9996: australian rock
9997: beatlesque,british invasion,classic rock,merseybeat,psychedelic rock,rock
9998: alternative rock,dance rock,modern rock,permanent wave,rock
9999: australian alternative rock,australian rock,australian ska
danceability energy key loudness mode speechiness acousticness
<num> <num> <num> <num> <num> <num> <num>
1: 0.878 0.7460 11 -4.281 1 0.0451 0.047600
2: 0.531 0.6480 0 -10.648 1 0.0412 0.649000
3: 0.359 0.4140 0 -11.949 1 0.0339 0.636000
4: 0.464 0.4200 5 -12.649 1 0.0280 0.843000
5: 0.617 0.8720 8 -12.305 1 0.0480 0.015800
---
9995: 0.380 0.0993 2 -20.567 1 0.0509 0.914000
9996: 0.582 0.7720 2 -5.028 1 0.0332 0.691000
9997: 0.604 0.5490 1 -9.873 1 0.0389 0.531000
9998: 0.467 0.9880 11 -3.313 1 0.1120 0.000152
9999: 0.275 0.9930 9 -5.474 0 0.1380 0.000186
instrumentalness liveness valence tempo time_signature album_genres
<num> <num> <num> <num> <num> <lgcl>
1: 0.00e+00 0.1540 0.792 111.996 4 NA
2: 5.01e-01 0.4420 0.589 116.572 4 NA
3: 1.08e-03 0.3670 0.628 158.741 4 NA
4: 9.73e-01 0.2620 0.591 94.570 4 NA
5: 1.12e-01 0.4080 0.504 111.458 4 NA
---
9995: 2.32e-05 0.0605 0.440 174.874 4 NA
9996: 1.75e-04 0.1240 0.731 131.613 4 NA
9997: 0.00e+00 0.4380 0.696 111.398 4 NA
9998: 4.84e-02 0.2800 0.321 130.435 4 NA
9999: 0.00e+00 0.3020 0.190 148.725 4 NA
label
<char>
1: Liberator Music
2: RCA Records Label
3: Record Town
4: Gambit Records
5: Jams Communications
---
9995: Columbia
9996: WM Australia
9997: EMI Catalogue
9998: Universal Music Group
9999: Reprise
copyrights
<char>
1: C 2009 Dirtee Stank, P 2009 Dirtee Stank
2: P (P) 1999 BMG Entertainment
3: C 2016 Sunset Blvd., P 2016 Copyright Control
4: C 2006 Gambit Records
5: C 1992 Copyright Control, P 1992 Jams Communications
---
9995: P Originally Released 1963 Sony Music Entertainment Inc.
9996: C © 2008 Warner Music Australia Pty Limited, P ℗ 2008 Warner Music Australia Pty Limited
9997: C © 2015 Apple Corps Ltd., P ℗ 2015 Calderstone Productions Limited (a division of Universal Music Group)
9998: C © 2006 The Island Def Jam Music Group, P ℗ 2006 The Island Def Jam Music Group
9999: C © 1999 Reprise Records, P ℗ 1998, 1999 Reprise Records
main_genre duration_sec popularity_scaled is_popular
<char> <num> <num> <lgcl>
1: Classical/Instrumental 204.093 0.00 FALSE
2: Classical/Instrumental 165.693 0.37 FALSE
3: Classical/Instrumental 150.680 0.00 FALSE
4: Classical/Instrumental 117.640 0.22 FALSE
5: Dance/Electronic 216.270 0.00 FALSE
---
9995: Rock 165.426 0.71 FALSE
9996: Rock 125.226 0.16 FALSE
9997: Rock 158.880 0.61 FALSE
9998: Rock 220.426 0.01 FALSE
9999: Rock 229.066 0.47 FALSE
loudness_energy_ratio release_date release_year release_month release_day
<num> <Date> <num> <num> <int>
1: -5.738606 2009-09-25 2009 9 25
2: -16.432099 1999-08-24 1999 8 24
3: -28.862319 2016-12-02 2016 12 2
4: -30.116667 2006-01-01 2006 1 1
5: -14.111239 1992-08-03 1992 8 3
---
9995: -207.119839 1963-05-27 1963 5 27
9996: -6.512953 2008-08-23 2008 8 23
9997: -17.983607 1966-08-05 1966 8 5
9998: -3.353239 2006-10-03 2006 10 3
9999: -5.512588 1999-01-15 1999 1 15
efficiency_ratio tempo_energy_ratio
<num> <num>
1: 0.8496583 150.1287
2: 1.2203390 179.8951
3: 1.1532033 383.4324
4: 0.9051724 225.1667
5: 1.4132901 127.8188
---
9995: 0.2613158 1761.0675
9996: 1.3264605 170.4832
9997: 0.9089404 202.9107
9998: 2.1156317 132.0192
9999: 3.6109091 149.7734
I chose to incorporate a bar graph of the average popularity by genre to get a good idea of which genres are most popular and least.