From 2bf64be0ac283173b04e5d540d3249411ea78e1f Mon Sep 17 00:00:00 2001 From: furkandrms Date: Sat, 13 May 2023 00:59:59 +0300 Subject: [PATCH] . --- Car Prediction/CarPrice_Prediction.ipynb | 2 +- .../Spotify-Data-Visualization.ipynb | 242 ++++++++++++++++++ 2 files changed, 243 insertions(+), 1 deletion(-) create mode 100644 Spotify Data Analysis/Spotify-Data-Visualization.ipynb diff --git a/Car Prediction/CarPrice_Prediction.ipynb b/Car Prediction/CarPrice_Prediction.ipynb index e1f5025..075affb 100644 --- a/Car Prediction/CarPrice_Prediction.ipynb +++ b/Car Prediction/CarPrice_Prediction.ipynb @@ -14683,7 +14683,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.1" + "version": "3.11.1 (v3.11.1:a7a450f84a, Dec 6 2022, 15:24:06) [Clang 13.0.0 (clang-1300.0.29.30)]" }, "orig_nbformat": 4, "vscode": { diff --git a/Spotify Data Analysis/Spotify-Data-Visualization.ipynb b/Spotify Data Analysis/Spotify-Data-Visualization.ipynb new file mode 100644 index 0000000..9c23803 --- /dev/null +++ b/Spotify Data Analysis/Spotify-Data-Visualization.ipynb @@ -0,0 +1,242 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import numpy as np \n", + "import seaborn as sns\n", + "import matplotlib.pyplot as plt\n", + "import warnings\n", + "warnings.filterwarnings('ignore')\n" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
artist_nametrack_idtrack_nameacousticnessdanceabilityduration_msenergyinstrumentalnesskeylivenessloudnessmodespeechinesstempotime_signaturevalencepopularity
0YG2RM4jf1Xa9zPgMGRDiht8OBig Bank feat. 2 Chainz, Big Sean, Nicki Minaj0.0058200.7432383730.3390.00010.0812-7.67810.4090203.92740.11815
1YG1tHDG53xJNGsItRA3vfVgsBAND DRUM (feat. A$AP Rocky)0.0244000.8462148000.5570.00080.2860-7.25910.4570159.00940.3710
2R3HAB6Wosx2euFPMT14UXiWudMyRadio Silence0.0250000.6031389130.7230.00090.0824-5.89000.0454114.96640.38256
3Chris Cooq3J2Jpw61sO7l6Hc7qdYV91Lactose0.0294000.8001253810.5790.91250.0994-12.11800.0701123.00340.6410
4Chris Cooq2jbYvQCyPgX3CdmAzeVeuSSame - Original mix0.0000350.7831240160.7920.87870.0332-10.27710.0661120.04740.9280
\n", + "
" + ], + "text/plain": [ + " artist_name track_id \\\n", + "0 YG 2RM4jf1Xa9zPgMGRDiht8O \n", + "1 YG 1tHDG53xJNGsItRA3vfVgs \n", + "2 R3HAB 6Wosx2euFPMT14UXiWudMy \n", + "3 Chris Cooq 3J2Jpw61sO7l6Hc7qdYV91 \n", + "4 Chris Cooq 2jbYvQCyPgX3CdmAzeVeuS \n", + "\n", + " track_name acousticness danceability \\\n", + "0 Big Bank feat. 2 Chainz, Big Sean, Nicki Minaj 0.005820 0.743 \n", + "1 BAND DRUM (feat. A$AP Rocky) 0.024400 0.846 \n", + "2 Radio Silence 0.025000 0.603 \n", + "3 Lactose 0.029400 0.800 \n", + "4 Same - Original mix 0.000035 0.783 \n", + "\n", + " duration_ms energy instrumentalness key liveness loudness mode \\\n", + "0 238373 0.339 0.000 1 0.0812 -7.678 1 \n", + "1 214800 0.557 0.000 8 0.2860 -7.259 1 \n", + "2 138913 0.723 0.000 9 0.0824 -5.890 0 \n", + "3 125381 0.579 0.912 5 0.0994 -12.118 0 \n", + "4 124016 0.792 0.878 7 0.0332 -10.277 1 \n", + "\n", + " speechiness tempo time_signature valence popularity \n", + "0 0.4090 203.927 4 0.118 15 \n", + "1 0.4570 159.009 4 0.371 0 \n", + "2 0.0454 114.966 4 0.382 56 \n", + "3 0.0701 123.003 4 0.641 0 \n", + "4 0.0661 120.047 4 0.928 0 " + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "data = pd.read_csv(\"/Users/furkandurmus/Desktop/Kaggle Projects/Data Science Projects/Spotify Data Analysis/SpotifyFeatures (1).csv\")\n", + "data.head()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.1" + }, + "orig_nbformat": 4, + "vscode": { + "interpreter": { + "hash": "aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49" + } + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}