{"cells":[{"cell_type":"markdown","metadata":{"_cell_guid":"eeeffdd0-bf1d-c5b5-fe1c-3c6a8daf3256"},"source":"This notebook only explores the train_info file, to get a feel of the different artists and their styles!"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"a498dde0-91b3-71da-0e76-4616002daac2"},"outputs":[],"source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load in \n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\nfrom matplotlib import pyplot as plt\nimport seaborn as sns\n\n# Input data files are available in the \"../input/\" directory.\n# For example, running this (by clicking run or pressing Shift+Enter) will list the files in the input directory\n\nfrom subprocess import check_output\nprint(check_output([\"ls\", \"../input\"]).decode(\"utf8\"))\n\n# Any results you write to the current directory are saved as output."},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"bb211065-2558-82de-2f25-24dfea9e9627"},"outputs":[],"source":"#import training data\ntrain_info = pd.read_csv('../input/train_info.csv')\n\n#sneakpeak\ntrain_info.head()"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"ef64d35a-7e67-4503-4671-7b6143d362c5"},"outputs":[],"source":"#how many different artists do we have?\ntrain_info['artist'].value_counts().shape[0]"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"ec7ae0d6-d65c-3c95-63b9-671006d7d6f6"},"outputs":[],"source":"#histogram of number of works by each artist\ntrain_info['artist'].value_counts().hist(bins=200)\n         \n#looking at the first artist\n#train_info[train_info['artist'] == '5b39c876740bfc1cfaf544721c43cac3']"},{"cell_type":"markdown","metadata":{"_cell_guid":"ed333723-76bc-df43-ad1f-728d3c609888"},"source":"There are 1584 artists and most of the artists have about 10 works."},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"b64df57a-6d21-363d-fd0f-495c5fe9fe1f"},"outputs":[],"source":"#how many genre do we have?\ntrain_info['genre'].value_counts()"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"0ddc0cbd-d557-0b65-62ff-d012a91a4ab8"},"outputs":[],"source":"sns.countplot(x='genre', data=train_info)"},{"cell_type":"markdown","metadata":{"_cell_guid":"4f486d96-5630-84a4-9c31-dddb0dc825b4"},"source":"How many different genre does each artist work on?"}],"metadata":{"_change_revision":0,"_is_fork":false,"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.5.2"}},"nbformat":4,"nbformat_minor":0}