{"cells":[{"metadata":{"_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","trusted":true},"cell_type":"code","source":"#https://www.kaggle.com/c/facebook-v-predicting-check-ins/data\n\nimport math\nimport seaborn as sns\nsns.set(style=\"whitegrid\", color_codes=True)\n\n\nfrom wordcloud import WordCloud, STOPWORDS\n\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\nimport numpy as np # linear algebra\nimport matplotlib \nimport matplotlib.pyplot as plt\nimport sklearn\n%matplotlib inline\nimport matplotlib.pyplot as plt \nplt.rcParams[\"figure.figsize\"] = [16, 12]\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.\nfilenames = check_output([\"ls\", \"../input/\"]).decode(\"utf8\").strip()\n# helpful character encoding module\nimport chardet\n","execution_count":1,"outputs":[]},{"metadata":{"trusted":true,"collapsed":true,"_uuid":"ce54304645e27c425adaa755177442bdc85f4ec6"},"cell_type":"code","source":"df = pd.read_csv('../input/train.csv')\ndg = pd.read_csv('../input/test.csv')\ndh = pd.read_csv('../input/sample_submission.csv')","execution_count":2,"outputs":[]},{"metadata":{"_cell_guid":"79c7e3d0-c299-4dcb-8224-4455121ee9b0","_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","trusted":true},"cell_type":"code","source":"df.sample(5)","execution_count":3,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"12b6e00261cbca94bff7923ec5a01c503ea3b1b1"},"cell_type":"code","source":"dg.sample(5)","execution_count":4,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"963a6911a77042ce42c018f4f2034c61cbeaf48c"},"cell_type":"code","source":"#df[[-'row_id']]\ndf.loc[:, df.columns != 'row_id'].hist()","execution_count":6,"outputs":[]},{"metadata":{"trusted":true,"collapsed":true,"_uuid":"097443814ed8b2e6bcd30c68bfba680559ef1e27"},"cell_type":"code","source":"df.place_id.describe()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"collapsed":true,"_uuid":"373582914459692162e126a275ce1031435c5a60"},"cell_type":"code","source":"df.place_id.value_counts().plot.bar()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"collapsed":true,"_uuid":"abb6532c663473bd4b20297d0428fd7a38d3ff7c"},"cell_type":"code","source":"","execution_count":null,"outputs":[]}],"metadata":{"language_info":{"name":"python","version":"3.6.5","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"}},"nbformat":4,"nbformat_minor":1}