{"cells":[{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"cell_type":"code","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)\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\nimport os\nprint(os.listdir(\"../input\"))\n\n# Any results you write to the current directory are saved as output.\ndf_train = pd.read_csv(\"../input/train.csv\")","execution_count":null,"outputs":[]},{"metadata":{"_cell_guid":"79c7e3d0-c299-4dcb-8224-4455121ee9b0","_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","trusted":true},"cell_type":"code","source":"import matplotlib.pyplot as plt\nfig, axes = plt.subplots(1, 3, figsize=(15,15))\n\ndf_train[df_train['feature_2'] == 1].groupby('feature_2').target.hist(ax=axes[0])\ndf_train[df_train['feature_2'] == 2].groupby('feature_2').target.hist(ax=axes[1])\ndf_train[df_train['feature_2'] == 3].groupby('feature_2').target.hist(ax=axes[2])\n","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"2cb8a552ed533e63bd53a24ac38758aa30b593c1"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"36198fba2e5c03cff84b01189fe40562b7006af5"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"c727e8a7f7c109214d85b3792c2a60beeb883e90"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"cca7715897d015af0ee11d650b3aee34320870d1"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"3b2ec75de2dd76092abb08b1bb0c382cfaad12bb"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"2dee407e6f915b53ee56df5ee847e06affd154a8"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"6c63a34ea0c0e0b49484cbc0fe92b264f3032543"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"509958593b95b5c752adbfc6e056af4a581b98e8"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"9d429cdeef71618774510167f3642c54da4d3922"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"1e786001771e96a173d78203e77bf1fea9645985"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"176bc30c374414a26e57c0d4afd042e4d7b85e8e"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"1b60696219625782a937e7f75a5d7467473b879a"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"90b84a436271b971e83ad9170d114b514d58e2fc"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"6d2ce92f4a0b1a4b584702ff4fbc487370b25742"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"7f7780e4f0d3942e33b6770373797e840274aa39"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"ed178aaaf38927a9a0c0c09d5c82b26d7a8adc00"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"b36039db68325b475fa5ec3c4bcb27447824fe80"},"cell_type":"code","source":"df_train['feature_2'].value_counts().head(10).plot.bar()\n","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"e8f7a8f9df8bab6b3fe521d59c5f8b8f4fa88b93"},"cell_type":"code","source":"df_train['feature_3'].value_counts().head(10).plot.bar()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"7a1a8aeb264b4f52f681d326c7f65bddb02ab1dd"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"9a37f2c5dee8b42cbfb9440d7d5ffff36c2293d2"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"37aa1fb1748b1365ed6c14c8993422c7a4e91364"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"53e5f5e48e1842a7ec3929e262069491ce3ce0d9"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"fdf618e991423311dd1f24a5b51dd97a2da77e09"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"29c4a4f684615ae297c89d174163e8e48918b8be"},"cell_type":"code","source":"","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"name":"python","version":"3.6.6","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat":4,"nbformat_minor":1}